Index: trunk/extensions/StableVersion/StableVersion.php |
— | — | @@ -95,8 +95,8 @@ |
96 | 96 | // Default language is english |
97 | 97 | require_once( 'language/en.php' ); |
98 | 98 | |
99 | | - global $wgLanguageCode; |
100 | | - $filename = 'language/' . addslashes( $wgLanguageCode ) . '.php'; |
| 99 | + global $wgLang; |
| 100 | + $filename = 'language/' . addslashes( $wgLang->getCode() ) . '.php'; |
101 | 101 | // inclusion might fail :p |
102 | 102 | include( $filename ); |
103 | 103 | } |
Index: trunk/extensions/Tasks/Tasks.php |
— | — | @@ -134,8 +134,8 @@ |
135 | 135 | // Default language is english |
136 | 136 | require_once('language/en.php'); |
137 | 137 | |
138 | | - global $wgLanguageCode; |
139 | | - $filename = 'language/' . addslashes($wgLanguageCode) . '.php' ; |
| 138 | + global $wgLang; |
| 139 | + $filename = 'language/' . addslashes($wgLang->getCode()) . '.php' ; |
140 | 140 | // inclusion might fail :p |
141 | 141 | include( $filename ); |
142 | 142 | } |
Index: trunk/extensions/Watchers/Watchers.php |
— | — | @@ -48,8 +48,8 @@ |
49 | 49 | // Default language is english |
50 | 50 | require_once('language/en.php'); |
51 | 51 | |
52 | | - global $wgLanguageCode; |
53 | | - $filename = 'language/' . addslashes($wgLanguageCode) . '.php' ; |
| 52 | + global $wgLang; |
| 53 | + $filename = 'language/' . addslashes($wgLang->getCode()) . '.php' ; |
54 | 54 | // inclusion might fail :p |
55 | 55 | include( $filename ); |
56 | 56 | } |
— | — | @@ -183,4 +183,4 @@ |
184 | 184 | } |
185 | 185 | |
186 | 186 | |
187 | | -?> |
\ No newline at end of file |
| 187 | +?> |
Index: trunk/extensions/Review/Review.php |
— | — | @@ -82,8 +82,8 @@ |
83 | 83 | // Default language is english |
84 | 84 | require_once('language/en.php'); |
85 | 85 | |
86 | | - global $wgLanguageCode; |
87 | | - $filename = 'language/' . addslashes($wgLanguageCode) . '.php' ; |
| 86 | + global $wgLang; |
| 87 | + $filename = 'language/' . addslashes($wgLang->getCode()) . '.php' ; |
88 | 88 | // inclusion might fail :p |
89 | 89 | include( $filename ); |
90 | 90 | |
Index: trunk/extensions/wikiforum/wikiforum.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | // Multi-language management |
51 | 51 | require('language/default.php'); // require the default language file |
52 | 52 | |
53 | | -$lang = 'language/'.$wgLanguageCode; |
| 53 | +$lang = 'language/'.$wgLang->getCode(); |
54 | 54 | if($wgUseLatin1) |
55 | 55 | $lang .= '_latin1'; |
56 | 56 | else |