if( is_object( $link ) ) {
$title =& $link;
} else {
- $title =& Title::newFromText( $link );
+ $title = Title::newFromText( $link );
if( is_null( $title ) ) {
return false;
}
$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;
}
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() );
* @static
* @access public
*/
- function &newFromText( $text, $defaultNamespace = NS_MAIN ) {
+ function newFromText( $text, $defaultNamespace = NS_MAIN ) {
$fname = 'Title::newFromText';
wfProfileIn( $fname );