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