From: Zheng Zhu Date: Sun, 26 Sep 2004 00:00:52 +0000 (+0000) Subject: fix fallback in wfMsgReal() as well X-Git-Tag: 1.5.0alpha1~1786 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=a8a113d22dd8f8a17febd64131838a8fec4798df;p=lhc%2Fweb%2Fwiklou.git fix fallback in wfMsgReal() as well --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 044848cae4..6cc0351736 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -445,6 +445,8 @@ function wfMsgReal( $key, $args, $useDB, $forContent=false ) { $message = $cache->get( $key, $useDB, $forContent ); } elseif (is_object($lang)) { $message = $lang->getMessage( $key ); + if(!$message) + $message = Language::getMessage($key); if(strstr($message, '{{' ) !== false) { $message = $wgParser->transformMsg($message, $wgMsgParserOptions); }