mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-23 23:13:27 +00:00
Adding missing return value 'true' to loadGadgetsI18n
Whitespaces
This commit is contained in:
parent
ebc206ba2b
commit
624980a418
13
Gadgets.php
13
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;
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
Loading…
Reference in a new issue