From: Sam Reed Date: Mon, 21 Mar 2011 15:18:11 +0000 (+0000) Subject: Reinstate some lines added during r84357 X-Git-Tag: 1.31.0-rc.0~31274 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=60578c163d48636785349287e1eec9a1f8cb7fb4;p=lhc%2Fweb%2Fwiklou.git Reinstate some lines added during r84357 I guess they're used on some code paths... As it's not an unconditional return... --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 48e83d2306..944dddebd0 100644 --- 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;