From 624980a4185a1653a91dbc9a31e30197addbec39 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 6 Aug 2007 08:37:15 +0000 Subject: [PATCH] Adding missing return value 'true' to loadGadgetsI18n Whitespaces --- Gadgets.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Gadgets.php b/Gadgets.php index 440c696b..b41df6f0 100644 --- a/Gadgets.php +++ b/Gadgets.php @@ -206,20 +206,19 @@ function loadGadgetsI18n() { static $initialized = false; - if ( $initialized ) return; + if ( $initialized ) + return true; $messages= array(); - + $f= dirname( __FILE__ ) . '/Gadgets.i18n.php'; include( $f ); - + $f= dirname( __FILE__ ) . '/Gadgets.i18n.' . $wgLang->getCode() . '.php'; if ( file_exists( $f ) ) include( $f ); - + $initialized = true; $wgMessageCache->addMessages( $messages ); return true; -} - -?> \ No newline at end of file +} \ No newline at end of file