From 6dd32e874d3d5ab853542c848f3637c43be37f55 Mon Sep 17 00:00:00 2001 From: Hutchy68 Date: Fri, 11 Dec 2020 10:51:37 -0500 Subject: [PATCH] Deprecated code fixed --- Pivot.skin.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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); } }