From 123f2fe6e58047666e89ef8406f7dedfb3c7ea47 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 11 Feb 2007 06:31:06 +0000 Subject: [PATCH] * Get messages to actually transform (use magic phrases) --- includes/GlobalFunctions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index dbddf1f53b..c01520d1b2 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -380,10 +380,15 @@ 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, $transform ); + $message = wfMsgGetKey( $key, $useDB, $forContent, false); $message = wfMsgReplaceArgs( $message, $args ); + if ( $transform && isset( $wgMessageCache ) ) { + $message = $wgMessageCache->transform( $message ); + } wfProfileOut( $fname ); return $message; } -- 2.20.1