r66568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66567‎ | r66568 | r66569 >
Date:16:02, 17 May 2010
Author:ialex
Status:deferred
Tags:
Comment:
Use TranslateUtils::assetPath() instead of $wgScriptPath
Modified paths:
  • /trunk/extensions/Translate/utils/JsSelectToInput.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/JsSelectToInput.php
@@ -67,8 +67,8 @@
6868 static $done = false;
6969 if ( $done ) return;
7070
71 - global $wgOut, $wgScriptPath;
72 - $wgOut->addScriptFile( "$wgScriptPath/extensions/Translate/utils/JsSelectToInput.js" );
 71+ global $wgOut;
 72+ $wgOut->addScriptFile( TranslateUtils::assetPath( 'utils/JsSelectToInput.js' ) );
7373 }
7474
7575 }
\ No newline at end of file

Status & tagging log