r67639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67638‎ | r67639 | r67640 >
Date:16:50, 8 June 2010
Author:ialex
Status:deferred
Tags:
Comment:
Use TranslateUtils::assetPath()
Modified paths:
  • /trunk/extensions/Translate/SpecialImportTranslations.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialImportTranslations.php
@@ -101,10 +101,10 @@
102102 * Constructs and outputs file input form with supported methods.
103103 */
104104 protected function outputForm() {
105 - global $wgOut, $wgScriptPath;
 105+ global $wgOut;
106106
107107 $wgOut->includeJQuery();
108 - $this->out->addScriptFile( "$wgScriptPath/extensions/Translate/js/import.js" );
 108+ $this->out->addScriptFile( TranslateUtils::assetPath( 'js/import.js' ) );
109109
110110 // Ugly but necessary form building ahead, ohoy
111111 $this->out->addHTML(

Status & tagging log