Reinstate some lines added during r84357
authorSam Reed <reedy@users.mediawiki.org>
Mon, 21 Mar 2011 15:18:11 +0000 (15:18 +0000)
committerSam 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

index 48e83d2..944ddde 100644 (file)
@@ -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;