r76640 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76639‎ | r76640 | r76641 >
Date:18:59, 13 November 2010
Author:catrope
Status:deferred
Tags:
Comment:
Per CR on r75587, use local/remote path variables here too
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -423,14 +423,16 @@
424424 # Startup code
425425 function efTranslateResources( &$resourceLoader ) {
426426 global $wgExtensionAssetsPath;
 427+ $localPath = dirname( __FILE__ );
 428+ $remotePath = "$wgExtensionAssetsPath/Translate";
427429 $resourceLoader->register(
428430 array(
429431 'translate-css' =>
430432 new ResourceLoaderFileModule( array( 'styles' => 'Translate.css' ),
431 - dirname( __FILE__ ), "$wgExtensionAssetsPath/Translate" ),
 433+ $localPath, $remotePath ),
432434 'translationdisplay' =>
433 - new ResourceLoaderFileModule( array( 'scripts' => 'translationdisplay.js' ),
434 - dirname( __FILE__ ) . '/js' , "$wgExtensionAssetsPath/Translate/js" ),
 435+ new ResourceLoaderFileModule( array( 'scripts' => 'js/translationdisplay.js' ),
 436+ $localPath, $remotePath ),
435437 )
436438 );
437439 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75587(bug 25339) Allow specifying separate base paths for local and remote paths i...catrope22:22, 27 October 2010

Status & tagging log