OSDN Git Service

FIX: PHP5/MySQL5における文法違反コードの修正
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / libs / ITEMACTIONS.php
index 15d3ecb..9717549 100644 (file)
@@ -454,7 +454,7 @@ class ITEMACTIONS extends BaseActions {
 \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
@@ -487,7 +487,7 @@ class ITEMACTIONS extends BaseActions {
                // 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
@@ -523,8 +523,8 @@ class ITEMACTIONS extends BaseActions {
         * '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
@@ -781,7 +781,7 @@ class ITEMACTIONS extends BaseActions {
                $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