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:
b694d74
)
Reinstate some lines added during r84357
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 21 Mar 2011 15:18:11 +0000
(15:18 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 21 Mar 2011 15:18:11 +0000
(15:18 +0000)
I guess they're used on some code paths... As it's not an unconditional return...
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
48e83d2
..
944ddde
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-4943,6
+4943,8
@@
class Parser {
# Find the target section
if ( $sectionIndex == 0 ) {
+ # Section zero doesn't nest, level=big
+ $targetLevel = 1000;
if ( !$node ) {
# The page definitely exists - we checked that earlier - so it must be blank: see bug #14005
return $text;