From 44ff6f220765485f673b914bc4aeb5d64904b6aa Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Wed, 9 May 2007 17:48:44 +0000 Subject: [PATCH] rm bogus attempt to call Language::getMessage() as a class method --- includes/GlobalFunctions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 949a45c931..9f6dc8fd9d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -482,8 +482,7 @@ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { $message = false; } wfRestoreWarnings(); - if($message === false) - $message = Language::getMessage($key); + if ( $transform && strstr( $message, '{{' ) !== false ) { $message = $wgParser->transformMsg($message, $wgMessageCache->getParserOptions() ); } -- 2.20.1