From 7d4a95ab53b7f5ce84cca4b24ef89fd7c08a00fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 1 Aug 2005 23:58:51 +0000 Subject: [PATCH] No references here, caused ugly by php notice --- includes/GlobalFunctions.php | 2 +- includes/Parser.php | 2 +- includes/SpecialRandompage.php | 2 +- includes/Title.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index c1303a4e6c..536b5f8578 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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; } diff --git a/includes/Parser.php b/includes/Parser.php index 46e0bb56bf..ff743b03bf 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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; diff --git a/includes/SpecialRandompage.php b/includes/SpecialRandompage.php index 59836c9fed..82d580cb6a 100644 --- a/includes/SpecialRandompage.php +++ b/includes/SpecialRandompage.php @@ -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() ); diff --git a/includes/Title.php b/includes/Title.php index 33f728b780..4d7994b42b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 ); -- 2.20.1