Adding missing return value 'true' to loadGadgetsI18n

Whitespaces
This commit is contained in:
Raimond Spekking 2007-08-06 08:37:15 +00:00
parent ebc206ba2b
commit 624980a418

View file

@ -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;
}
?>
}