Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler.hooks.php |
— | — | @@ -12,14 +12,14 @@ |
13 | 13 | static function register(){ |
14 | 14 | global $wgParserOutputHooks, $wgHooks, $wgJobClasses, $wgJobTypesExcludedFromDefaultQueue, |
15 | 15 | $wgMediaHandlers, $wgResourceModules, $wgExcludeFromThumbnailPurge, $wgExtraNamespaces, |
16 | | - $wgTmhFileExtensions, $wgParserOutputHooks, $wgOut, $wgAPIPropModules, $wgTimedTextNS; |
| 16 | + $wgTmhFileExtensions, $wgParserOutputHooks, $wgOut, $wgAPIPropModules, $wgTimedTextNS, |
| 17 | + $wgExtensionAssetsPath, $wgMwEmbedModuleConfig, $timedMediaDir; |
17 | 18 | |
18 | 19 | // Register the Timed Media Handler javascript resources ( MwEmbed modules ) |
19 | | - MwEmbedResourceManager::register( 'extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer' ); |
20 | | - MwEmbedResourceManager::register( 'extensions/TimedMediaHandler/MwEmbedModules/TimedText' ); |
| 20 | + MwEmbedResourceManager::register( basename( $wgExtensionAssetsPath ) . '/TimedMediaHandler/MwEmbedModules/EmbedPlayer' ); |
| 21 | + MwEmbedResourceManager::register( basename( $wgExtensionAssetsPath ) . '/TimedMediaHandler/MwEmbedModules/TimedText' ); |
21 | 22 | |
22 | 23 | // Set the default webPath for this embed player extension |
23 | | - global $wgExtensionAssetsPath, $wgMwEmbedModuleConfig, $timedMediaDir; |
24 | 24 | $wgMwEmbedModuleConfig['EmbedPlayer.WebPath'] = $wgExtensionAssetsPath . |
25 | 25 | '/' . basename ( $timedMediaDir ) . '/MwEmbedModules/EmbedPlayer'; |
26 | 26 | |