From 5fa40fe0fbfb379022430c24fcf66392e229d9a5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Feb 2007 21:33:22 +0000 Subject: [PATCH] Revert r19877; no reason is given for it but it breaks things such as parameter substitution of text that includes {{braces}}. An example of breakage is the automated deletion comments, where it expands template contents unexpectedly --- includes/GlobalFunctions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index c01520d1b2..dbddf1f53b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -380,15 +380,10 @@ function wfMsgNoDBForContent( $key ) { * @return String: the requested message. */ function wfMsgReal( $key, $args, $useDB = true, $forContent=false, $transform = true ) { - global $wgMessageCache; - $fname = 'wfMsgReal'; wfProfileIn( $fname ); - $message = wfMsgGetKey( $key, $useDB, $forContent, false); + $message = wfMsgGetKey( $key, $useDB, $forContent, $transform ); $message = wfMsgReplaceArgs( $message, $args ); - if ( $transform && isset( $wgMessageCache ) ) { - $message = $wgMessageCache->transform( $message ); - } wfProfileOut( $fname ); return $message; } -- 2.20.1