dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71def3
)
Removed special case preventing table of contents on the main page. People can use...
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 13 Mar 2005 16:52:48 +0000
(16:52 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 13 Mar 2005 16:52:48 +0000
(16:52 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
fbc7b28
..
f096aa3
100644
(file)
--- 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])(.*?'.'>)(.*?)<\/H[1-6] *>/i', $text, $matches );