From 9a4bf97145d72cb25b3b393ce3f56661803603e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 2 Apr 2005 18:28:56 +0000 Subject: [PATCH] * Minor syntax cleanup --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ff859c6918..4fa86c57f1 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -390,8 +390,7 @@ function wfMsgReal( $key, $args, $useDB, $forContent=false ) { if( is_object( $wgMessageCache ) ) { $message = $wgMessageCache->get( $key, $useDB, $forContent ); - } - else { + } else { if( $forContent ) { $lang = &$wgContLang; } else { @@ -399,6 +398,7 @@ function wfMsgReal( $key, $args, $useDB, $forContent=false ) { } wfSuppressWarnings(); + if( is_object( $lang ) ) { $message = $lang->getMessage( $key ); } else { -- 2.20.1