From be206499e6ac615f4c0ede26bd6fa2ab4c7d464f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 8 Mar 2004 09:42:00 +0000 Subject: [PATCH] fixed a couple of minor bugs --- includes/SpecialAllmessages.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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\""; -- 2.20.1