diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-04-19 20:06:39 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-04-19 20:06:39 +0000 |
commit | 9b0677ec33b7391c577b48bd5ecbd0fd4ca905d5 (patch) | |
tree | b3c3e56421fd25b93cabe31ad6100ff07f1b4222 /ws.php | |
parent | c53ea72d908548f90daa9d05fc0e885f187756f9 (diff) |
ws method parameters that are required should not have a default value
git-svn-id: http://piwigo.org/svn/trunk@10502 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -246,7 +246,7 @@ function ws_addDefaultMethods( $arr ) 'ws_images_delete', array( 'image_id'=>array('default'=>0), - 'pwg_token' => array('default' => null), + 'pwg_token' => array(), ), 'Delete photos. You can give several image_ids, comma separated' ); @@ -273,7 +273,7 @@ function ws_addDefaultMethods( $arr ) 'ws_categories_delete', array( 'category_id'=>array('default'=>0), - 'pwg_token' => array('default' => null), + 'pwg_token' => array(), 'photo_deletion_mode' => array('default' => 'delete_orphans'), ), 'Delete categories. You can give several category_ids, comma separated. @@ -286,7 +286,7 @@ function ws_addDefaultMethods( $arr ) array( 'category_id'=>array('default'=>0), 'parent'=>array('default'=>0), - 'pwg_token' => array('default' => null), + 'pwg_token' => array(), ), 'Move categories. You can give several category_ids, comma separated. Set parent as 0 to move to gallery root. Only virtual categories can be moved.' ); @@ -385,9 +385,9 @@ function ws_addDefaultMethods( $arr ) 'pwg.plugins.performAction', 'ws_plugins_performAction', array( - 'action' => array('default' => null), - 'plugin' => array('default' => null), - 'pwg_token' => array('default' => null), + 'action' => array(), + 'plugin' => array(), + 'pwg_token' => array(), ), 'install/activate/deactivate/uninstall/delete a plugin <br>administration status required' @@ -397,9 +397,9 @@ function ws_addDefaultMethods( $arr ) 'pwg.themes.performAction', 'ws_themes_performAction', array( - 'action' => array('default' => null), - 'themes' => array('default' => null), - 'pwg_token' => array('default' => null), + 'action' => array(), + 'theme' => array(), + 'pwg_token' => array(), ), 'activate/deactivate/delete/set_default a theme<br>administration status required' ); |