From 248b02f6e61346454f9b01436cfbbd0bddb7905d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 28 Nov 2005 01:13:05 +0000 Subject: [PATCH] * When wfMsg*NoTrans() was called the message cache transformation was disabled permanently for the session, not just for that one message call --- includes/GlobalFunctions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 52a0e3388e..4a5e608122 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -393,6 +393,8 @@ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { global $wgContLang, $wgLanguageCode; global $wgMessageCache, $wgLang; + $transstat = $wgMessageCache->getTransform(); + if( is_object( $wgMessageCache ) ) { if ( ! $transform ) $wgMessageCache->disableTransform(); @@ -418,6 +420,10 @@ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { $message = $wgParser->transformMsg($message, $wgMsgParserOptions); } } + + if ( ! $transform ) + $wgMessageCache->setTransform( $transstat ); + return $message; } -- 2.20.1