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:
plegall
2008-10-07 22:01:14 +00:00
parent 42c665eeff
commit 3eecf04629
3 changed files with 67 additions and 0 deletions
+9
View File
@@ -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');