aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-06-14 13:54:05 +0000
committerplegall <plg@piwigo.org>2011-06-14 13:54:05 +0000
commitd11eb3a6be536b888bd2ccc8376e22350f566981 (patch)
tree40ed96435538501ec3cb0c1ca01d869c1e0a891f /ws.php
parentfcda5191191c70b613c50c18016b4d6c597183a8 (diff)
merge r11371 from branch 2.2 to trunk
bug 2345 fixed: ability to update the rank of a photo for an existing category. I haven't modified pwg.images.setInfo, I've just added a new method pwg.images.setRank which does this very specific job. git-svn-id: http://piwigo.org/svn/trunk@11372 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index a23929d28..e4a317385 100644
--- a/ws.php
+++ b/ws.php
@@ -143,6 +143,17 @@ function ws_addDefaultMethods( $arr )
'sets the privacy levels for the images (POST method only)'
);
+ $service->addMethod(
+ 'pwg.images.setRank',
+ 'ws_images_setRank',
+ array(
+ 'image_id' => array(),
+ 'category_id' => array(),
+ 'rank' => array(),
+ ),
+ 'sets the rank of a photo for a given album (POST method only, for admins)'
+ );
+
$service->addMethod('pwg.session.getStatus', 'ws_session_getStatus', null, '' );
$service->addMethod('pwg.session.login', 'ws_session_login',
array('username', 'password'),