diff --git a/Pivot.skin.php b/Pivot.skin.php index f6ce50d..bdd511f 100644 --- a/Pivot.skin.php +++ b/Pivot.skin.php @@ -11,9 +11,7 @@ class SkinPivot extends SkinTemplate { public $skinname = 'pivot', $stylename = 'pivot', $template = 'pivotTemplate', $useHeadElement = true; - public function setupSkinUserCss(OutputPage $out) { - parent::setupSkinUserCss($out); - global $wgLocalStylePath; + public function getDefaultModules() { global $wgPivotFeatures; $wgPivotFeaturesDefaults = array( 'showActionsForAnon' => true, @@ -37,11 +35,11 @@ class SkinPivot extends SkinTemplate { } if ( $wgPivotFeatures['preloadFontAwesome'] ) { - $out->addHeadItem('font', ''); + $this->getOutput()->addHeadItem('font', ''); } - $out->addModuleStyles('skins.pivot.styles'); - + $this->getOutput()->addModuleStyles('skins.pivot.styles'); + return parent::getDefaultModules(); } public function initPage(OutputPage $out) { @@ -297,7 +295,7 @@ class pivotTemplate extends BaseTemplate { function renderSidebar() { $sidebar = $this->getSidebar(); foreach ($sidebar as $boxName => $box) { - echo '
'; + echo ''; if ( is_array( $box['content'] ) ) { foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); } }