aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-21 15:12:38 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-21 15:12:38 +0000
commitf5ef4fddd7ce277f27ef4face7933fe5a7406200 (patch)
tree128762355458b207214d41431c3bd9cabbfc6761 /ws.php
parente1fd6aa04b301bb52a9ffa6423ba1885a3e21ddc (diff)
feature:2271
Add pwg.extensions.checkUpdates method to webservices. Add a warning message on intro page if update is availble for piwigo or extensions. Add an "Ignore All" button on extensions update page. git-svn-id: http://piwigo.org/svn/trunk@10538 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 046ee4743..46429b021 100644
--- a/ws.php
+++ b/ws.php
@@ -445,6 +445,13 @@ function ws_addDefaultMethods( $arr )
<br>Parameter type must be "plugins", "languages" or "themes".
<br>If reset parameter is true, all ignored extensions will be reinitilized.'
);
+
+ $service->addMethod(
+ 'pwg.extensions.checkUpdates',
+ 'ws_extensions_checkupdates',
+ array(),
+ 'Check if piwigo or extensions are up to date.'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');