From 44d5ffd6e92891841e85af90b4ee4901818b35f5 Mon Sep 17 00:00:00 2001 From: Piotr Miazga Date: Tue, 7 May 2019 22:21:10 +0200 Subject: [PATCH] MinervaNeue has no sidebar, do not process this method MinervaNeue doesn't show any sidebar, only MainMenu and PagetActions menu. There is no need to call original Skin::buildSidebar() as the result is not used. Change-Id: Iec60491d4b45b7b6f6ba23525a4f6af08903bb31 --- includes/skins/SkinMinerva.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 32f195d..cae0a37 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -973,6 +973,14 @@ class SkinMinerva extends SkinTemplate { ]; } + /** + * Minerva skin do not have sidebar, there is no need to calculate that. + * @return array + */ + public function buildSidebar() { + return []; + } + /** * Creates a history action: An icon that links to the mobile history page. *