From: Tim Starling Date: Sun, 13 Mar 2005 16:52:48 +0000 (+0000) Subject: Removed special case preventing table of contents on the main page. People can use... X-Git-Tag: 1.5.0alpha1~623 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=900e0b3b500f26525eca44861da91cf407187495;p=lhc%2Fweb%2Fwiklou.git Removed special case preventing table of contents on the main page. People can use __NOTOC__, after all. --- 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 );