Skip to content

Commit 41e8ab3

Browse files
committed
Fix Undefined index: sanctions
1 parent 549fe8d commit 41e8ab3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

includes/FemiwikiTemplate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ public function getToolboxData() {
261261

262262
if ( version_compare( MW_VERSION, '1.35', '<' ) ) {
263263
if ( ExtensionRegistry::getInstance()->isLoaded( 'Sanctions' )
264+
&& $this->getSkin()->getRelevantUser()
264265
&& isset( $this->data['sidebar']['TOOLBOX']['sanctions'] ) ) {
265266
$toolbox = wfArrayInsertAfter(
266267
$toolbox,

skin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Femiwiki",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"author": "[https://femiwiki.com/ Femiwiki Team]",
55
"url": "https://github.com/femiwiki/FemiwikiSkin",
66
"descriptionmsg": "femiwiki-desc",

0 commit comments

Comments
 (0)