r89709 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89708‎ | r89709 | r89710 >
Date:22:34, 7 June 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
fix path to css, load css on page load
Modified paths:
  • /trunk/extensions/SemanticGlossary/SemanticGlossary.php (modified) (history)
  • /trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
@@ -183,7 +183,7 @@
184184 global $wgOut, $wgScriptPath;
185185
186186 if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) {
187 - $wgOut->addModules( 'ext.SemanticGlossary.Browser' );
 187+ $wgOut->addModuleStyles( 'ext.SemanticGlossary.Browser' );
188188 } else {
189189 $wgOut->addHeadItem( 'ext.SemanticGlossary.Browser.css', '<link rel="stylesheet" href="' . $wgScriptPath . '/extensions/SemanticGlossary/skins/SemanticGlossaryBrowser.css" />' );
190190 }
Index: trunk/extensions/SemanticGlossary/SemanticGlossary.php
@@ -71,7 +71,7 @@
7272 // register resource modules with the Resource Loader
7373 $wgResourceModules['ext.SemanticGlossary.Browser'] = array(
7474 'localBasePath' => $dir,
75 - 'styles' => 'css/SemanticGlossaryBrowser.css',
 75+ 'styles' => 'skins/SemanticGlossaryBrowser.css',
7676 'remoteExtPath' => 'SemanticGlossary'
7777 );
7878