\r
// add comments\r
if ($this->showComments && $this->blog->commentsEnabled()) {\r
- $comments =& new COMMENTS($this->currentItem->itemid);\r
+ $comments = new COMMENTS($this->currentItem->itemid);\r
$comments->setItemActions($this);\r
$comments->showComments($this->template, $maxToShow, $this->currentItem->closed ? 0 : 1, $this->strHighlight);\r
}\r
// add item reference (array_unshift didn't work)\r
$params = array_merge(array(&$this->currentItem),$params);\r
\r
- call_user_func_array(array(&$plugin,'doTemplateVar'), $params);\r
+ call_user_func_array(array($plugin,'doTemplateVar'), $params);\r
}\r
\r
/**\r
* 'plugin variables in items' implementation by Andy\r
*/\r
function highlightAndParse(&$data) {\r
- $actions =& new BODYACTIONS($this->blog);\r
- $parser =& new PARSER($actions->getDefinedActions(), $actions);\r
+ $actions = new BODYACTIONS($this->blog);\r
+ $parser = new PARSER($actions->getDefinedActions(), $actions);\r
$actions->setTemplate($this->template);\r
$actions->setHighlight($this->strHighlight);\r
$actions->setCurrentItem($this->currentItem);\r
$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);
}
}\r
?>
\ No newline at end of file