Removed forced call-by-reference from LogPage::addEntry(), causes errors in some...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 14 Jul 2006 04:13:49 +0000 (04:13 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 14 Jul 2006 04:13:49 +0000 (04:13 +0000)
includes/LogPage.php

index f588105..954b178 100644 (file)
@@ -207,13 +207,13 @@ class LogPage {
         * @param string $comment Description associated
         * @param array $params Parameters passed later to wfMsg.* functions
         */
-       function addEntry( $action, &$target, $comment, $params = array() ) {
+       function addEntry( $action, $target, $comment, $params = array() ) {
                if ( !is_array( $params ) ) {
                        $params = array( $params );
                }
 
                $this->action = $action;
-               $this->target =& $target;
+               $this->target = $target;
                $this->comment = $comment;
                $this->params = LogPage::makeParamBlob( $params );