r24616 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24615‎ | r24616 | r24617 >
Date:08:37, 6 August 2007
Author:raymond
Status:old
Tags:
Comment:
Adding missing return value 'true' to loadGadgetsI18n
Whitespaces
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -206,20 +206,19 @@
207207
208208 static $initialized = false;
209209
210 - if ( $initialized ) return;
 210+ if ( $initialized )
 211+ return true;
211212
212213 $messages= array();
213 -
 214+
214215 $f= dirname( __FILE__ ) . '/Gadgets.i18n.php';
215216 include( $f );
216 -
 217+
217218 $f= dirname( __FILE__ ) . '/Gadgets.i18n.' . $wgLang->getCode() . '.php';
218219 if ( file_exists( $f ) ) include( $f );
219 -
 220+
220221 $initialized = true;
221222 $wgMessageCache->addMessages( $messages );
222223
223224 return true;
224 -}
225 -
226 -?>
\ No newline at end of file
 225+}
\ No newline at end of file

Status & tagging log