Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -423,14 +423,16 @@ |
424 | 424 | # Startup code |
425 | 425 | function efTranslateResources( &$resourceLoader ) { |
426 | 426 | global $wgExtensionAssetsPath; |
| 427 | + $localPath = dirname( __FILE__ ); |
| 428 | + $remotePath = "$wgExtensionAssetsPath/Translate"; |
427 | 429 | $resourceLoader->register( |
428 | 430 | array( |
429 | 431 | 'translate-css' => |
430 | 432 | new ResourceLoaderFileModule( array( 'styles' => 'Translate.css' ), |
431 | | - dirname( __FILE__ ), "$wgExtensionAssetsPath/Translate" ), |
| 433 | + $localPath, $remotePath ), |
432 | 434 | '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 ), |
435 | 437 | ) |
436 | 438 | ); |
437 | 439 | return true; |