From: Brion Vibber Date: Thu, 9 Sep 2004 22:22:17 +0000 (+0000) Subject: Re-enable message transformations when we're done building the message list. X-Git-Tag: 1.5.0alpha1~2037 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=b1f135446a3f08dd1976776b2ac226364b0bc9f0;p=lhc%2Fweb%2Fwiklou.git Re-enable message transformations when we're done building the message list. Fix for bug 435: Page footer variables not replaced when viewing Special:Allmessages http://bugzilla.wikipedia.org/show_bug.cgi?id=435 --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 247b700d8f..c0f8f02da8 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -263,6 +263,7 @@ class MessageCache function disable() { $this->mDisable = true; } function enable() { $this->mDisable = false; } function disableTransform() { $this->mDisableTransform = true; } + function enableTransform() { $this->mDisableTransform = false; } function addMessage( $key, $value ) { $this->mExtensionMessages[$key] = $value; diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index f8cd28f283..91f7f1f458 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -29,6 +29,7 @@ function wfSpecialAllmessages() { $messages[$key]['statmsg'] = wfMsgNoDb( $key ); $messages[$key]['msg'] = wfMsg ( $key ); } + $wgMessageCache->enableTransform(); wfProfileOut( "$fname-setup" ); wfProfileIn( "$fname-output" );