aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-03-11 20:48:27 +0000
committerrvelices <rv-github@modusoptimus.com>2014-03-11 20:48:27 +0000
commit3be1afd58324df7dfcb1df9aea1f5e667941b9c7 (patch)
tree2eaba1fbaf703f0b62a16f416553da69fe21f0eb /include
parent0aac622d67383beab4b35c4c38face7c5a32dec9 (diff)
removed unnecessary by ref parameters + do not define IN_ADMIN on ws method
git-svn-id: http://piwigo.org/svn/trunk@27694 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/ws_functions/pwg.extensions.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/ws_functions/pwg.extensions.php b/include/ws_functions/pwg.extensions.php
index a1c8ae1b8..8a308ff3d 100644
--- a/include/ws_functions/pwg.extensions.php
+++ b/include/ws_functions/pwg.extensions.php
@@ -26,7 +26,7 @@
* Returns the list of all plugins
* @param mixed[] $params
*/
-function ws_plugins_getList($params, &$service)
+function ws_plugins_getList($params, $service)
{
include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php');
@@ -65,7 +65,7 @@ function ws_plugins_getList($params, &$service)
* @option string plugin
* @option string pwg_token
*/
-function ws_plugins_performAction($params, &$service)
+function ws_plugins_performAction($params, $service)
{
global $template;
@@ -102,7 +102,7 @@ function ws_plugins_performAction($params, &$service)
* @option string theme
* @option string pwg_token
*/
-function ws_themes_performAction($params, &$service)
+function ws_themes_performAction($params, $service)
{
global $template;
@@ -141,7 +141,7 @@ function ws_themes_performAction($params, &$service)
* @option string pwg_token
* @option bool reactivate (optional - undocumented)
*/
-function ws_extensions_update($params, &$service)
+function ws_extensions_update($params, $service)
{
if (!is_webmaster())
{
@@ -238,7 +238,7 @@ function ws_extensions_update($params, &$service)
* @option bool reset
* @option string pwg_token
*/
-function ws_extensions_ignoreupdate($params, &$service)
+function ws_extensions_ignoreupdate($params, $service)
{
global $conf;
@@ -299,11 +299,10 @@ function ws_extensions_ignoreupdate($params, &$service)
* Checks for updates (core and extensions)
* @param mixed[] $params
*/
-function ws_extensions_checkupdates($params, &$service)
+function ws_extensions_checkupdates($params, $service)
{
global $conf;
- define('IN_ADMIN', true);
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');