global $wgDBserver, $wgDBuser, $wgDBpassword;
global $wgDBname, $wgDBconnection, $wgEmergencyContact;
- $noconn = str_replace( "$1", $wgDBserver, wfMsgNoDB( "noconnect" ) );
- $nodb = str_replace( "$1", $wgDBname, wfMsgNoDB( "nodb" ) );
+ $noconn = wfMsgNoDB( "noconnect", $wgDBserver );
+ $nodb = wfMsgNoDB( "nodb", $wgDBname );
$helpme = "\n<p>If this error persists after reloading and clearing " .
"your browser cache, please notify the <a href=\"mailto:" .
Namespace::getWikipedia() ) .
":" . wfMsg( "dellogpage" ), wfMsg( "deletionlog" ) );
- $text = str_replace( "$1" , $deleted, wfMsg( "deletedtext" ) );
- $text = str_replace( "$2", $loglink, $text );
+ $text = wfMsg( "deletedtext", $deleted, $loglink );
$wgOut->addHTML( "<p>" . $text );
$wgOut->returnToMain( false );
if ( "" == $contextchars ) { $contextchars = 50; }
$link = $sk->makeKnownLink( $t, "" );
- $size = str_replace( "$1", strlen( $row->cur_text ), WfMsg( "nbytes" ) );
+ $size = wfMsg( "nbytes", strlen( $row->cur_text ) );
$wgOut->addHTML( "<li>{$link} ({$size})" );
$lines = explode( "\n", $row->cur_text );
$tl = $this->makeKnownLink( $wgLang->getNsText(
Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}",
wfMsg("newmessageslink") );
- $s.=" | <strong>". str_replace( "$1", $tl, wfMsg("newmessages") ) . "</strong>";
+ $s.=" | <strong>". wfMsg( "newmessages", $tl ) . "</strong>";
}
}
if( $wgUser->isSysop() &&
$s = "";
} else {
$count = $wgArticle->getCount();
- $s = str_replace( "$1", $count, wfMsg( "viewcount" ) );
+ $s = wfMsg( "viewcount", $count );
}
$s .= $this->lastModified();
$s .= " " . wfMsg( "gnunote" );
global $wgLang, $wgArticle;
$d = $wgLang->timeanddate( $wgArticle->getTimestamp(), true );
- $s = " " . str_replace( "$1", $d, wfMsg( "lastmodified" ) );
+ $s = " " . wfMsg( "lastmodified", $d );
return $s;
}
else { $ul = $this->makeLink( $wgLang->getNsText(
Namespace::getUser() ) . ":{$ut}", $ut ); }
- $nb = str_replace( "$1", $size, wfMsg( "nbytes" ) );
+ $nb = wfMsg( "nbytes", $size );
$style = $this->getInternalLinkAttributes( $url, $dt );
$s = "<li> ({$dlink}) ({$rlink}) <a href=\"{$url}\"{$style}>{$dt}</a>"
# Make log entry
$log = new LogPage( wfMsg( "blocklogpage" ), wfMsg( "blocklogtext" ) );
- $action = str_replace( "$1", $wpBlockAddress, wfMsg( "blocklogentry" ) );
+ $action = wfMsg( "blocklogentry", $wgBlockAddress );
$log->addEntry( $action, $wpBlockReason );
# Report to the user
$wgOut->setPagetitle( wfMsg( "blockip" ) );
$wgOut->setSubtitle( wfMsg( "blockipsuccesssub" ) );
- $text = str_replace( "$1", $ip, wfMsg( "blockipsuccesstext" ) );
+ $text = wfMsg( "blockipsuccesstext", $ip );
$wgOut->addWikiText( $text );
}
}
else {
$ul = $sk->makeKnownLink( $nt->getPrefixedText(), $nt->getText() );
}
- $sub = str_replace( "$1", $ul, wfMsg( "contribsub" ) );
- $wgOut->setSubtitle( $sub );
+ $wgOut->setSubtitle( wfMsg( "contribsub", $ul ) );
if ( ! isset( $hideminor ) ) {
$hideminor = $wgUser->getOption( "hideminor" );