From 60578c163d48636785349287e1eec9a1f8cb7fb4 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 21 Mar 2011 15:18:11 +0000 Subject: [PATCH] Reinstate some lines added during r84357 I guess they're used on some code paths... As it's not an unconditional return... --- includes/parser/Parser.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1