return $title->getLocalURL( $urlaction );
}
/*static*/ function makeI18nUrl ( $name, $urlaction='' ) {
- $title = Title::newFromText( wfMsg($name) );
+ $title = Title::newFromText( wfMsgForContent($name) );
$this->checkTitle($title, $name);
return $title->getLocalURL( $urlaction );
}
);
}
/*static*/ function makeI18nUrlDetails ( $name, $urlaction='' ) {
- $title = Title::newFromText( wfMsg($name) );
+ $title = Title::newFromText( wfMsgForContent($name) );
$this->checkTitle($title, $name);
return array(
'href' => $title->getLocalURL( $urlaction ),
}
/* static */ function newMainPage() {
- return Title::newFromText( wfMsg( 'mainpage' ) );
+ return Title::newFromText( wfMsgForContent( 'mainpage' ) );
}
# Get the title object for a redirect