Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | |
9 | 9 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
10 | 10 | |
11 | | -define('SF_VERSION','1.5'); |
| 11 | +define('SF_VERSION','1.5.1'); |
12 | 12 | |
13 | 13 | $wgExtensionCredits['specialpage'][]= array( |
14 | 14 | 'name' => 'Semantic Forms', |
— | — | @@ -160,15 +160,15 @@ |
161 | 161 | if (!empty($sfgContLang)) { return; } |
162 | 162 | |
163 | 163 | $cont_lang_class = 'SF_Language' . str_replace( '-', '_', ucfirst( $langcode ) ); |
| 164 | + if (file_exists($sfgIP . '/languages/'. $cont_lang_class . '.php')) { |
| 165 | + include_once( $sfgIP . '/languages/'. $cont_lang_class . '.php' ); |
| 166 | + } |
| 167 | + |
164 | 168 | // fallback if language not supported |
165 | 169 | if ( !class_exists($cont_lang_class)) { |
166 | 170 | $cont_lang_class = 'SF_LanguageEn'; |
167 | 171 | } |
168 | 172 | |
169 | | - if (file_exists($sfgIP . '/languages/'. $cont_lang_class . '.php')) { |
170 | | - include_once( $sfgIP . '/languages/'. $cont_lang_class . '.php' ); |
171 | | - } |
172 | | - |
173 | 173 | $sfgContLang = new $cont_lang_class(); |
174 | 174 | } |
175 | 175 | |