Index: trunk/extensions/APC/APC.php |
— | — | @@ -32,3 +32,9 @@ |
33 | 33 | $wgSpecialPageGroups['APC'] = 'wiki'; |
34 | 34 | |
35 | 35 | $wgAvailableRights[] = 'apc'; |
| 36 | + |
| 37 | +$wgResourceModules['ext.apc'] = array( |
| 38 | + 'styles' => 'apc.css', |
| 39 | + 'localBasePath' => dirname(__FILE__), |
| 40 | + 'remoteExtPath' => 'APC' |
| 41 | +); |
Index: trunk/extensions/APC/SpecialAPC.php |
— | — | @@ -100,9 +100,7 @@ |
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
104 | | - $wgOut->addLink( array( 'rel' => 'stylesheet', 'type' => 'text/css', |
105 | | - 'href' => "$wgScriptPath/extensions/APC/apc.css?$wgStyleVersion", ) |
106 | | - ); |
| 104 | + $wgOut->addModuleStyles( 'ext.apc' ); |
107 | 105 | |
108 | 106 | $this->getLogo(); |
109 | 107 | $this->mainMenu(); |