wfSeedRandom();
# Placeholders in case of DB error
-$wgTitle = Title::newFromText( wfMsg( 'badtitle' ) );
+$wgTitle = Title::newFromText( wfMsgForContent( 'badtitle' ) );
$wgArticle = new Article($wgTitle);
wfProfileOut( $fname.'-misc2' );
$sk = $wgUser->getSkin();
#FIXME : probably need to add a backlink to the maintenance page.
- return '<p>'.wfMsg("disambiguationstext", $sk->makeKnownLink(wfMsg('disambiguationspage')) )."</p><br>\n";
+ return '<p>'.wfMsg("disambiguationstext", $sk->makeKnownLink(wfMsgForContent('disambiguationspage')) )."</p><br>\n";
}
function getSQL() {
$dbr =& wfGetDB( DB_SLAVE );
extract( $dbr->tableNames( 'cur', 'links' ) );
- $dp = Title::newFromText(wfMsg("disambiguationspage"));
+ $dp = Title::newFromText(wfMsgForContent("disambiguationspage"));
$dpid = $dp->getArticleID();
$sql = "SELECT ca.cur_namespace AS ns_art, ca.cur_title AS title_art,"
$title = $wgRequest->getVal( "title" );
# Placeholders in case of DB error
-$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
+$wgTitle = Title::newFromText( wfMsgForContent( "badtitle" ) );
$wgArticle = new Article($wgTitle);
$action = strtolower( trim( $action ) );
}
if ( "" == $title && "delete" != $action ) {
- $wgTitle = Title::newFromText( wfMsg( "mainpage" ) );
+ $wgTitle = Title::newFromText( wfMsgForContent( "mainpage" ) );
} elseif ( $curid = $wgRequest->getInt( 'curid' ) ) {
# URLs like this are generated by RC, because rc_title isn't always accurate
$wgTitle = Title::newFromID( $curid );
$searchEngine->goResult();
}
} else if( !$wgTitle or $wgTitle->getDBkey() == "" ) {
- $wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
+ $wgTitle = Title::newFromText( wfMsgForContent( "badtitle" ) );
$wgOut->errorpage( "badtitle", "badtitletext" );
} else if ( $wgTitle->getInterwiki() != "" ) {
$url = $wgTitle->getFullURL();
if ( !preg_match( "/^" . preg_quote( $wgServer, "/" ) . "/", $url ) && $wgTitle->isLocal() ) {
$wgOut->redirect( $url );
} else {
- $wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
+ $wgTitle = Title::newFromText( wfMsgForContent( "badtitle" ) );
$wgOut->errorpage( "badtitle", "badtitletext" );
}
} else if ( ( $action == "view" ) &&