aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-10-07 22:01:14 +0000
committerplegall <plg@piwigo.org>2008-10-07 22:01:14 +0000
commit3eecf04629ce2a48208e2f9fe3189eba535d6597 (patch)
tree59008f2abfc607591cecec4dacdb6e5efdec8ae7 /ws.php
parent42c665eefff16db088cf341758e62643ac3ad074 (diff)
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
Diffstat (limited to '')
-rw-r--r--ws.php9
1 files changed, 9 insertions, 0 deletions
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');