From 900e0b3b500f26525eca44861da91cf407187495 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 13 Mar 2005 16:52:48 +0000 Subject: [PATCH] Removed special case preventing table of contents on the main page. People can use __NOTOC__, after all. --- includes/Parser.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index fbc7b28f62..f096aa3024 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2202,12 +2202,6 @@ class Parser $doShowToc = 0; } - # never add the TOC to the Main Page. This is an entry page that should not - # be more than 1-2 screens large anyway - if( $this->mTitle->getPrefixedText() == wfMsg('mainpage') ) { - $doShowToc = 0; - } - # Get all headlines for numbering them and adding funky stuff like [edit] # links - this is for later, but we need the number of headlines right now $numMatches = preg_match_all( '/)(.*?)<\/H[1-6] *>/i', $text, $matches ); -- 2.20.1