From a45e65206aad12cd93bf554e147378fa5137bd01 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 23 Mar 2012 14:11:00 +0800 Subject: [PATCH] MDL-32171: add 'Manage' link to Picasa repository --- lib/googleapi.php | 1 + repository/picasa/lib.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/googleapi.php b/lib/googleapi.php index af545a095abec..33c3a045bc9e0 100644 --- a/lib/googleapi.php +++ b/lib/googleapi.php @@ -376,6 +376,7 @@ class google_picasa { const ALBUM_PHOTO_LIST = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/'; const PHOTO_SEARCH_URL = 'https://picasaweb.google.com/data/feed/api/user/default?kind=photo&q='; const LIST_ALBUMS_URL = 'https://picasaweb.google.com/data/feed/api/user/default'; + const MANAGE_URL = 'http://picasaweb.google.com/'; private $google_curl = null; diff --git a/repository/picasa/lib.php b/repository/picasa/lib.php index e95741b1da83a..2566d9914820a 100644 --- a/repository/picasa/lib.php +++ b/repository/picasa/lib.php @@ -84,6 +84,7 @@ public function get_listing($path='', $page = '') { $ret = array(); $ret['dynload'] = true; + $ret['manage'] = google_picasa::MANAGE_URL; $ret['list'] = $picasa->get_file_list($path); return $ret; } @@ -92,6 +93,7 @@ public function search($search_text, $page = 0) { $picasa = new google_picasa(new google_authsub($this->subauthtoken)); $ret = array(); + $ret['manage'] = google_picasa::MANAGE_URL; $ret['list'] = $picasa->do_photo_search($search_text); return $ret; }