Last modified: 2011-11-28 10:59:00 UTC
Well, the title basicly tells the entire story. The apc.css file should be loaded with ResourceLoader.
Created attachment 9558 [details] Add ResourceLoader support
Comment on attachment 9558 [details] Add ResourceLoader support >Index: APC.php >=================================================================== >--- APC.php (revision 104292) >+++ APC.php (working copy) >@@ -32,3 +32,7 @@ > $wgSpecialPageGroups['APC'] = 'wiki'; > > $wgAvailableRights[] = 'apc'; >+ >+$wgResourceModules['ext.apc'] = array( >+ 'styles' => 'apc.css', >+ 'localBasePath' => dirname(__FILE__), >+ 'remoteExtPath' => 'APC' >+); >Index: SpecialAPC.php >=================================================================== >--- SpecialAPC.php (revision 104292) >+++ SpecialAPC.php (working copy) >@@ -100,9 +100,7 @@ > } > } > >- $wgOut->addLink( array( 'rel' => 'stylesheet', 'type' => 'text/css', >- 'href' => "$wgScriptPath/extensions/APC/apc.css?$wgStyleVersion", ) >- ); >+ $wgOut->addModuleStyles( 'ext.apc' ); > > $this->getLogo(); > $this->mainMenu();
Created attachment 9559 [details] ?debug=1 works
Comment on attachment 9559 [details] ?debug=1 works + 'styles' => 'apc.css', Spaces, otherwise I'll apply it.
Created attachment 9560 [details] Adds ResourceLoader support for apc.css (fix previous patch errors) Fix spacing.
r104297
Well done Lewis! Thanks for the patch 8-)