r66494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66493‎ | r66494 | r66495 >
Date:19:59, 15 May 2010
Author:ialex
Status:deferred
Tags:
Comment:
Per Nikerabbit: use $wgExtensionAssetsPath
Modified paths:
  • /trunk/extensions/LanguageSelector/LanguageSelector.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LanguageSelector/LanguageSelector.php
@@ -183,7 +183,7 @@
184184 }
185185
186186 function wfLanguageSelectorBeforePageDisplay( &$out ) {
187 - global $wgScriptPath, $wgLanguageSelectorLocation, $wgLanguageSelectorFormUsed;
 187+ global $wgExtensionAssetsPath, $wgLanguageSelectorLocation, $wgLanguageSelectorFormUsed;
188188
189189 if ( $wgLanguageSelectorLocation == LANGUAGE_SELECTOR_AT_TOP_OF_TEXT ) {
190190 $html = wfLanguageSelectorHTML();
@@ -193,8 +193,8 @@
194194 if ( $wgLanguageSelectorFormUsed ||
195195 $wgLanguageSelectorLocation != LANGUAGE_SELECTOR_MANUAL )
196196 {
197 - $out->addScriptFile( $wgScriptPath .
198 - '/extensions/LanguageSelector/LanguageSelector.js' );
 197+ $out->addScriptFile( $wgExtensionAssetsPath .
 198+ '/LanguageSelector/LanguageSelector.js' );
199199 }
200200
201201 return true;

Status & tagging log