Index: trunk/extensions/LanguageSelector/LanguageSelector.php |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | } |
185 | 185 | |
186 | 186 | function wfLanguageSelectorBeforePageDisplay( &$out ) { |
187 | | - global $wgScriptPath, $wgLanguageSelectorLocation, $wgLanguageSelectorFormUsed; |
| 187 | + global $wgExtensionAssetsPath, $wgLanguageSelectorLocation, $wgLanguageSelectorFormUsed; |
188 | 188 | |
189 | 189 | if ( $wgLanguageSelectorLocation == LANGUAGE_SELECTOR_AT_TOP_OF_TEXT ) { |
190 | 190 | $html = wfLanguageSelectorHTML(); |
— | — | @@ -193,8 +193,8 @@ |
194 | 194 | if ( $wgLanguageSelectorFormUsed || |
195 | 195 | $wgLanguageSelectorLocation != LANGUAGE_SELECTOR_MANUAL ) |
196 | 196 | { |
197 | | - $out->addScriptFile( $wgScriptPath . |
198 | | - '/extensions/LanguageSelector/LanguageSelector.js' ); |
| 197 | + $out->addScriptFile( $wgExtensionAssetsPath . |
| 198 | + '/LanguageSelector/LanguageSelector.js' ); |
199 | 199 | } |
200 | 200 | |
201 | 201 | return true; |