From 56164a4275b40cdb6cf15363c309292542280cde Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Thu, 24 Mar 2022 08:56:13 -0700 Subject: [PATCH] Enable table of contents on all namespaces Bug: T304168 Change-Id: Ib61f801640e77c34573c166072f0fb302687e8b1 --- includes/SkinVector22.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/SkinVector22.php b/includes/SkinVector22.php index 87a22b22..76c3ac43 100644 --- a/includes/SkinVector22.php +++ b/includes/SkinVector22.php @@ -29,9 +29,8 @@ class SkinVector22 extends SkinVector { private function isTableOfContentsVisibleInSidebar(): bool { $featureManager = VectorServices::getFeatureManager(); $title = $this->getTitle(); - $isMainNS = $title ? $title->inNamespaces( 0 ) : false; $isMainPage = $title ? $title->isMainPage() : false; - return $featureManager->isFeatureEnabled( Constants::FEATURE_TABLE_OF_CONTENTS ) && $isMainNS && !$isMainPage; + return $featureManager->isFeatureEnabled( Constants::FEATURE_TABLE_OF_CONTENTS ) && !$isMainPage; } /**