r113483 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113482‎ | r113483 | r113484 >
Date:17:00, 9 March 2012
Author:j
Status:ok
Tags:
Comment:
revert changes accidentally commited in r113482
Modified paths:
  • /trunk/extensions/MwEmbedSupport/MwEmbedSupport.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MwEmbedSupport/MwEmbedSupport.hooks.php
@@ -10,7 +10,7 @@
1111 class MwEmbedSupportHooks {
1212 // Register MwEmbedSupport Hooks
1313 static function register(){
14 - global $wgHooks $wgResourceModules;
 14+ global $wgHooks;
1515 // Register the core MwEmbed Support Module:
1616 MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' );
1717
@@ -28,11 +28,6 @@
2929
3030 // Add the startup modules hook
3131 $wgHooks['ResourceLoaderGetStartupModules'][] = 'MwEmbedSupportHooks::addStartupModules';
32 - $wgResourceModules['ext.MwEmbedSupport'] = array(
33 - 'styles' => 'MwEmbedModules/MwEmbedSupport/skins/common/MwEmbedCommonStyle.css',
34 - 'localBasePath' => dirname( __FILE__ ),
35 - 'remoteExtPath' => 'MwEmbedSupport',
36 - );
3732 return true;
3833 }
3934
@@ -51,4 +46,4 @@
5247 array_push($modules, 'jquery.triggerQueueCallback', 'jquery.loadingSpinner', 'jquery.mwEmbedUtil', 'mw.MwEmbedSupport' );
5348 return true;
5449 }
55 -}
 50+}
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113482set remoteExtPath, extensions url might be different, this fixes resource loa...j16:57, 9 March 2012

Status & tagging log