Ignore:
Timestamp:
Mar 11, 2014, 9:48:27 PM (7 years ago)
Author:
rvelices
Message:

removed unnecessary by ref parameters + do not define IN_ADMIN on ws method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions/pwg.extensions.php

    r26461 r27694  
    2727 * @param mixed[] $params
    2828 */
    29 function ws_plugins_getList($params, &$service)
     29function ws_plugins_getList($params, $service)
    3030{
    3131  include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php');
     
    6666 *    @option string pwg_token
    6767 */
    68 function ws_plugins_performAction($params, &$service)
     68function ws_plugins_performAction($params, $service)
    6969{
    7070  global $template;
     
    103103 *    @option string pwg_token
    104104 */
    105 function ws_themes_performAction($params, &$service)
     105function ws_themes_performAction($params, $service)
    106106{
    107107  global $template;
     
    142142 *    @option bool reactivate (optional - undocumented)
    143143 */
    144 function ws_extensions_update($params, &$service)
     144function ws_extensions_update($params, $service)
    145145{
    146146  if (!is_webmaster())
     
    239239 *    @option string pwg_token
    240240 */
    241 function ws_extensions_ignoreupdate($params, &$service)
     241function ws_extensions_ignoreupdate($params, $service)
    242242{
    243243  global $conf;
     
    300300 * @param mixed[] $params
    301301 */
    302 function ws_extensions_checkupdates($params, &$service)
     302function ws_extensions_checkupdates($params, $service)
    303303{
    304304  global $conf;
    305305
    306   define('IN_ADMIN', true);
    307306  include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    308307  include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
Note: See TracChangeset for help on using the changeset viewer.