mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
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/branches/2.2@11371 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user