r113478 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113477‎ | r113478 | r113479 >
Date:16:11, 9 March 2012
Author:j
Status:deferred
Tags:
Comment:
use to register MwEmbed resources
Modified paths:
  • /trunk/extensions/TimedMediaHandler/TimedMediaHandler.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler.hooks.php
@@ -12,14 +12,14 @@
1313 static function register(){
1414 global $wgParserOutputHooks, $wgHooks, $wgJobClasses, $wgJobTypesExcludedFromDefaultQueue,
1515 $wgMediaHandlers, $wgResourceModules, $wgExcludeFromThumbnailPurge, $wgExtraNamespaces,
16 - $wgTmhFileExtensions, $wgParserOutputHooks, $wgOut, $wgAPIPropModules, $wgTimedTextNS;
 16+ $wgTmhFileExtensions, $wgParserOutputHooks, $wgOut, $wgAPIPropModules, $wgTimedTextNS,
 17+ $wgExtensionAssetsPath, $wgMwEmbedModuleConfig, $timedMediaDir;
1718
1819 // 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' );
2122
2223 // Set the default webPath for this embed player extension
23 - global $wgExtensionAssetsPath, $wgMwEmbedModuleConfig, $timedMediaDir;
2424 $wgMwEmbedModuleConfig['EmbedPlayer.WebPath'] = $wgExtensionAssetsPath .
2525 '/' . basename ( $timedMediaDir ) . '/MwEmbedModules/EmbedPlayer';
2626

Status & tagging log