From: Tim Starling Date: Mon, 8 Mar 2004 09:42:00 +0000 (+0000) Subject: fixed a couple of minor bugs X-Git-Tag: 1.3.0beta1~834 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=be206499e6ac615f4c0ede26bd6fa2ab4c7d464f;p=lhc%2Fweb%2Fwiklou.git fixed a couple of minor bugs --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 923e3ec3f9..e5322bf90b 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -2,13 +2,13 @@ function wfSpecialAllmessages() { - global $wgUser, $wgOut, $wgAllMessagesEn, $wgServer, $wgScript, $wgLang; + global $wgUser, $wgOut, $wgAllMessagesEn, $wgServer, $wgScript, $wgLang, $wgMessageCache; $talk = $wgLang->getNsText( NS_TALK ); $mwnspace = $wgLang->getNsText( NS_MEDIAWIKI ); $mwtalk = $wgLang->getNsText( NS_MEDIAWIKI_TALK ); $mwMsg =& MagicWord::get( MAG_MSG ); - $navText = str_replace( "$1", "allmessagestext", $mwMsg->getSynonym( 0 ) ); + $navText = str_replace( "$1", $mwMsg->getSynonym( 0 ), wfMsg("allmessagestext" ) ); $navText .= "
@@ -28,7 +28,9 @@ function wfSpecialAllmessages() $titleObj = Title::newFromText( $key ); $title = $titleObj->getDBkey(); - $message = wfMsgNoDB( $key ); + $wgMessageCache->disable(); + $message = wfMsg( $key ); + $wgMessageCache->enable(); $mw = wfMsg ( $key ); $colorIt = ($message == $mw) ? " bgcolor=\"#f0f0ff\"" : " bgcolor=\"#ffe2e2\"";