From 41e8ab3c461426a5fa9fa0381f9a081618cb393b Mon Sep 17 00:00:00 2001 From: lens0021 Date: Fri, 3 Jul 2020 22:31:10 +0900 Subject: [PATCH] Fix Undefined index: sanctions --- includes/FemiwikiTemplate.php | 1 + skin.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/FemiwikiTemplate.php b/includes/FemiwikiTemplate.php index 39eacf02..fa557f8d 100644 --- a/includes/FemiwikiTemplate.php +++ b/includes/FemiwikiTemplate.php @@ -261,6 +261,7 @@ public function getToolboxData() { if ( version_compare( MW_VERSION, '1.35', '<' ) ) { if ( ExtensionRegistry::getInstance()->isLoaded( 'Sanctions' ) + && $this->getSkin()->getRelevantUser() && isset( $this->data['sidebar']['TOOLBOX']['sanctions'] ) ) { $toolbox = wfArrayInsertAfter( $toolbox, diff --git a/skin.json b/skin.json index 2e7f122c..835733b0 100644 --- a/skin.json +++ b/skin.json @@ -1,6 +1,6 @@ { "name": "Femiwiki", - "version": "1.1.1", + "version": "1.1.2", "author": "[https://femiwiki.com/ Femiwiki Team]", "url": "https://github.com/femiwiki/FemiwikiSkin", "descriptionmsg": "femiwiki-desc",