From 3eecf04629ce2a48208e2f9fe3189eba535d6597 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 7 Oct 2008 22:01:14 +0000 Subject: 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 --- ws.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 6c0ce26ad..f36053312 100644 --- a/ws.php +++ b/ws.php @@ -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'); -- cgit v1.2.3