Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -206,20 +206,19 @@ |
207 | 207 | |
208 | 208 | static $initialized = false; |
209 | 209 | |
210 | | - if ( $initialized ) return; |
| 210 | + if ( $initialized ) |
| 211 | + return true; |
211 | 212 | |
212 | 213 | $messages= array(); |
213 | | - |
| 214 | + |
214 | 215 | $f= dirname( __FILE__ ) . '/Gadgets.i18n.php'; |
215 | 216 | include( $f ); |
216 | | - |
| 217 | + |
217 | 218 | $f= dirname( __FILE__ ) . '/Gadgets.i18n.' . $wgLang->getCode() . '.php'; |
218 | 219 | if ( file_exists( $f ) ) include( $f ); |
219 | | - |
| 220 | + |
220 | 221 | $initialized = true; |
221 | 222 | $wgMessageCache->addMessages( $messages ); |
222 | 223 | |
223 | 224 | return true; |
224 | | -} |
225 | | - |
226 | | -?> |
\ No newline at end of file |
| 225 | +} |
\ No newline at end of file |