mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 00:23:40 +02:00
feature 889 added: pwg.images.exist check the existence of a photo in the
database based on its md5sum. (avoid failing on pwg.images.add). git-svn-id: http://piwigo.org/svn/trunk@2683 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -229,6 +229,15 @@ function ws_addDefaultMethods( $arr )
|
||||
),
|
||||
'administration method only'
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.exist',
|
||||
'ws_images_exist',
|
||||
array(
|
||||
'md5sum_list'=> array(),
|
||||
),
|
||||
'check existence of a photo list'
|
||||
);
|
||||
}
|
||||
|
||||
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');
|
||||
|
||||
Reference in New Issue
Block a user