$fill .= $sk->makeKnownLink( $here, "{$num}",
"sort=bysize&limit={$num}" );
}
- $text = str_replace( "$1", $fill, wfMsg( "showlast" ) );
- $text = str_replace( "$2", $bysize, $text );
+ $text = wfMsg( "showlast", $fill, $bysize );
$wgOut->addHTML( "{$text}<br>\n" );
$fill = "";
$fill .= $sk->makeKnownLink( $here, $num,
"sort=bydate&limit={$num}" );
}
- $text = str_replace( "$1", $fill, wfMsg( "showlast" ) );
- $text = str_replace( "$2", $bydate, $text );
+ $text = wfMsg( "showlast", $fill, $bydate );
$wgOut->addHTML( "{$text}<br>\n<p>" );
$res = wfQuery( $sql, DB_READ, "wfSpecialImagelist" );
$ilink = "<a href=\"" . wfImageUrl( $name ) .
"\">{$name}</a>";
- $nb = str_replace( "$1", $s->img_size, wfMsg( "nbytes" ) );
+ $nb = wfMsg( "nbytes", $s->img_size );
$l = "(" .
$sk->makeKnownLink( $wgLang->getNsText(
Namespace::getImage() ) . ":{$name}", wfMsg( "imgdesc" ) ) .
$ipu = new IPUnblockForm();
if ( "success" == $action ) {
- $msg = str_replace( "$1", $ip, wfMsg( "ipusuccess" ) );
+ $msg = wfMsg( "ipusuccess", $ip );
$ipu->showList( $msg );
} else if ( "submit" == $action ) {
if ( ! $wgUser->isSysop() ) {
# Make log entry
$log = new LogPage( wfMsg( "blocklogpage" ), wfMsg( "blocklogtext" ) );
- $action = str_replace( "$1", $wpUnblockAddress, wfMsg( "unblocklogentry" ) );
+ $action = wfMsg( "unblocklogentry", $wpUnblockAddress );
$log->addEntry( $action, $wpUnblockReason );
# Report to the user
$ulink = $sk->makeKnownLink( $wgLang->getNsText( Namespace::getUser() ). ":{$name}", $name );
$d = $wgLang->timeanddate( $block->mTimestamp, true );
- $line = str_replace( "$1", $d, wfMsg( "blocklistline" ) );
- $line = str_replace( "$2", $ulink, $line );
- $line = str_replace( "$3", $addr, $line );
-
+ $line = wfMsg( "blocklistline", $d, $ulink, $addr );
+
$wgOut->addHTML( "<li>{$line}" );
if ( !$block->mAuto ) {
$wgOut->setPagetitle( wfMsg( "lockdb" ) );
$wgOut->setSubtitle( wfMsg( "lockdbsuccesssub" ) );
- $text = str_replace( "$1", $ip, wfMsg( "lockdbsuccesstext" ) );
- $wgOut->addWikiText( $text );
+ $wgOut->addWikiText( wfMsg( "lockdbsuccesstext", $ip ) );
}
}
$s = "<ol start=" . ( $offset + 1 ) . ">";
while ( $obj = wfFetchObject( $res ) ) {
- $nb = str_replace( "$1", $obj->len, wfMsg( "nbytes" ) );
+ $nb = wfMsg( "nbytes", $obj->len );
$link = $sk->makeKnownLink( $obj->cur_title, "" );
$s .= "<li>{$link} ({$nb})</li>\n";
}
$sk = $wgUser->getSkin();
- $top = "<p>".wfMsg("disambiguationstext")."</p><br>\n";
- $top = str_replace ( "$1" , $sk->makeKnownLink ( $dp ) , $top ) ;
- $top = getMaintenancePageBacklink().$top ;
+ $top = "<p>".wfMsg( "disambiguationstext", $sk->makeKnownLink( $dp ) )."</p><br>\n";
+ $top = getMaintenancePageBacklink() . $top;
$top .= wfShowingResults( $offset, $limit );
$wgOut->addHTML( "<p>{$top}\n" );
}
}
$top = getMaintenancePageBacklink();
- $top .= "<p>".str_replace("$1",$msl,wfMsg("mispeelingstext"))."</p><br>\n";
+ $top .= "<p>".wfMsg( "mispeelingstext", $msl )."</p><br>\n";
$top .= wfShowingResults( $offset, $limit );
$wgOut->addHTML( "<p>{$top}\n" );
$res = wfQuery( $sql, DB_READ, $fname );
- $mll = wfMsg("missinglanguagelinkstext");
- $mll = str_replace ( "$1" , $wgLang->getLanguageName($thelang) , $mll ) ;
+ $mll = wfMsg( "missinglanguagelinkstext", $wgLang->getLanguageName($thelang) );
$top = getMaintenancePageBacklink();
$top .= "<p>$mll</p><br>";