}
// - call callback
- if ($this->strCallback && function_exists($this->strCallback)) {
- call_user_func_array($this->strCallback, array(&$aData));
+ if ( $this->strCallback && function_exists($this->strCallback) )
+ {
+ $params = array(&$aData);
+ call_user_func_array($this->strCallback, $params);
}
if ($this->bDebug) {
$params = func_get_args();
array_shift($params);
- return call_user_func_array(array(&$plugin, 'doIf'), $params);
+ return call_user_func_array(array($plugin, 'doIf'), $params);
}
/**
// add skin type on front
array_unshift($params, $this->skintype);
- call_user_func_array(array(&$plugin,'doSkinVar'), $params);
+ call_user_func_array(array($plugin,'doSkinVar'), $params);
return;
}
case 'delete':
if ( $this->skintype != 'batchteam' )
{
- $error = call_user_func_array(array('Admin', $deleteaction), array($selectedid));
+ $params = array($selectedid);
+ $error = call_user_func_array(array('Admin', $deleteaction), $params);
}
else
{
}
break;
case 'move':
- $error = call_user_func_array(array('Admin', $moveaction), array($selectedid, $destid));
+ $params = array($selectedid, $destid);
+ $error = call_user_func_array(array('Admin', $moveaction), $params);
break;
case 'setadmin':
// always succeeds
if ( method_exists($this, $met) )
{
- $value = call_user_func(array(&$this, $met), $arg);
+ $value = call_user_func(array($this, $met), $arg);
}
}
$params = func_get_args();
array_shift($params);
- return call_user_func_array(array(&$plugin, 'doIf'), $params);
+ return call_user_func_array(array($plugin, 'doIf'), $params);
}
/**
array_shift($params);
// add item reference (array_unshift didn't work)
- $params = array_merge(array(&$this->currentItem), $params);
+ $target = array(&$this->currentItem);
+ $params = array_merge($target, $params);
- call_user_func_array(array(&$plugin, 'doItemVar'), $params);
+ call_user_func_array(array($plugin, 'doItemVar'), $params);
return;
}
// image/popup calls have arguments separated by |
$args = func_get_args();
$args = preg_split('#\|#', implode($args, ', '));
- echo call_user_func_array(array(&$this, 'createImageCode'), $args);
+ echo call_user_func_array(array($this, 'createImageCode'), $args);
}
/**
// image/popup calls have arguments separated by |
$args = func_get_args();
$args = preg_split('#\|#', implode($args, ', '));
- echo call_user_func_array(array(&$this, 'createMediaCode'), $args);
+ echo call_user_func_array(array($this, 'createMediaCode'), $args);
}
/**
// image/popup calls have arguments separated by |
$args = func_get_args();
$args = preg_split('#\|#', implode($args, ', '));
- echo call_user_func_array(array(&$this, 'createPopupCode'), $args);
+ echo call_user_func_array(array($this, 'createPopupCode'), $args);
}
/**
$params = func_get_args();
array_shift($params);
- return call_user_func_array(array(&$plugin, 'doIf'), $params);
+ return call_user_func_array(array($plugin, 'doIf'), $params);
}
}
{
$this->addIfExecute();
$args = func_get_args();
- $condition = call_user_func_array(array(&$this,'checkCondition'), $args);
+ $condition = call_user_func_array(array($this,'checkCondition'), $args);
$this->addIfCondition($condition);
return;
}
{
ob_end_clean();
$args = func_get_args();
- $condition = call_user_func_array(array(&$this,'checkCondition'), $args);
+ $condition = call_user_func_array(array($this,'checkCondition'), $args);
$this->addIfCondition($condition);
}
return;
$this->addIfExecute();
$args = func_get_args();
- $condition = call_user_func_array(array(&$this,'checkCondition'), $args);
+ $condition = call_user_func_array(array($this,'checkCondition'), $args);
$this->addIfCondition(!$condition);
return;
}
{
ob_end_clean();
$args = func_get_args();
- $condition = call_user_func_array(array(&$this,'checkCondition'), $args);
+ $condition = call_user_func_array(array($this,'checkCondition'), $args);
$this->addIfCondition(!$condition);
}
return;
array_shift($params);
// pass info on current item and current comment as well
- $params = array_merge(array(&$this->currentComment), $params);
- $params = array_merge(array(&$this->commentsObj->itemActions->currentItem), $params);
+ $target = array(&$this->currentComment);
+ $params = array_merge($target, $params);
+ $target = array(&$this->commentsObj->itemActions->currentItem);
+ $params = array_merge($target, $params);
- call_user_func_array(array(&$plugin,'doTemplateCommentsVar'), $params);
+ call_user_func_array(array($plugin,'doTemplateCommentsVar'), $params);
return;
}
$params = func_get_args();
array_shift($params);
- return call_user_func_array(array(&$plugin, 'doIf'), $params);
+ return call_user_func_array(array($plugin, 'doIf'), $params);
}
}
array_shift($params);
// add item reference (array_unshift didn't work)
- $params = array_merge(array(&$this->currentItem),$params);
+ $target = array(&$this->currentItem);
+ $params = array_merge($target,$params);
- call_user_func_array(array(&$plugin,'doTemplateVar'), $params);
+ call_user_func_array(array($plugin,'doTemplateVar'), $params);
return;
}
$params = func_get_args();
array_shift($params);
- return (boolean) call_user_func_array(array(&$plugin, 'doIf'), $params);
+ return (boolean) call_user_func_array(array($plugin, 'doIf'), $params);
}
}
&& !empty($this->plugins[$listener])
&& method_exists($this->plugins[$listener], 'event_' . $eventName) )
{
- call_user_func(array(&$this->plugins[$listener], 'event_' . $eventName), $data);
+ call_user_func(array($this->plugins[$listener], 'event_' . $eventName), $data);
}
}
}
return FALSE;
}
- $original = call_user_func_array($function, array(&$fullpath));
+ $original = call_user_func_array($function, $fullpath);
if ( !$original )
{
return FALSE;
if ( in_array($actionlc, $this->actions) || $this->norestrictions )
{
- call_user_func_array(array(&$this->handler, "parse_{$actionlc}"), $params);
+ call_user_func_array(array($this->handler, "parse_{$actionlc}"), $params);
}
else
{
$args = func_get_args();
array_shift($args);
array_unshift($args, 'template');
- call_user_func_array(array(&$this,'doSkinVar'),$args);
+ call_user_func_array(array($this, 'doSkinVar'), $args);
return;
}
array_shift($args);
array_shift($args);
array_unshift($args, 'template');
- call_user_func_array(array(&$this,'doSkinVar'),$args);
+ call_user_func_array(array($this, 'doSkinVar'), $args);
return;
}
// 3rd API convention for method-handling functions: EPI-style
if ($this->functions_parameters_type == 'epivals')
{
- $r = call_user_func_array($func, array($methName, $params, $this->user_data));
+ $params = array($methName, $params, $this->user_data);
+ $r = call_user_func_array($func, $params);
// mimic EPI behaviour: if we get an array that looks like an error, make it
// an eror response
if (is_array($r) && array_key_exists('faultCode', $r) && array_key_exists('faultString', $r))