No references here, caused ugly by php notice
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 1 Aug 2005 23:58:51 +0000 (23:58 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 1 Aug 2005 23:58:51 +0000 (23:58 +0000)
includes/GlobalFunctions.php
includes/Parser.php
includes/SpecialRandompage.php
includes/Title.php

index c1303a4..536b5f8 100644 (file)
@@ -523,7 +523,7 @@ function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) {
        if( is_object( $link ) ) {
                $title =& $link;
        } else {
-               $title =& Title::newFromText( $link );
+               $title = Title::newFromText( $link );
                if( is_null( $title ) ) {
                        return false;
                }
index 46e0bb5..ff743b0 100644 (file)
@@ -1308,7 +1308,7 @@ class Parser
                                $link = substr($link, 1);
                        }
 
-                       $nt =& Title::newFromText( $this->unstripNoWiki($link, $this->mStripState) );
+                       $nt = Title::newFromText( $this->unstripNoWiki($link, $this->mStripState) );
                        if( !$nt ) {
                                $s .= $prefix . '[[' . $line;
                                continue;
index 59836c9..82d580c 100644 (file)
@@ -51,7 +51,7 @@ function wfSpecialRandompage( $par = NS_MAIN ) {
        }       
        if( is_null( $title ) ) {
                # That's not supposed to happen :)
-               $title =& Title::newFromText( wfMsg( 'mainpage' ) );
+               $title = Title::newFromText( wfMsg( 'mainpage' ) );
        }
        $wgOut->reportTime(); # for logfile
        $wgOut->redirect( $title->getFullUrl() );
index 33f728b..4d7994b 100644 (file)
@@ -102,7 +102,7 @@ class Title {
         * @static
         * @access public
         */
-       function &newFromText( $text, $defaultNamespace = NS_MAIN ) {
+       function newFromText( $text, $defaultNamespace = NS_MAIN ) {
                $fname = 'Title::newFromText';
                wfProfileIn( $fname );