r84451 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84450‎ | r84451 | r84452 >
Date:15:18, 21 March 2011
Author:reedy
Status:reverted
Tags:
Comment:
Reinstate some lines added during r84357

I guess they're used on some code paths... As it's not an unconditional return...
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -4943,6 +4943,8 @@
49444944
49454945 # Find the target section
49464946 if ( $sectionIndex == 0 ) {
 4947+ # Section zero doesn't nest, level=big
 4948+ $targetLevel = 1000;
49474949 if ( !$node ) {
49484950 # The page definitely exists - we checked that earlier - so it must be blank: see bug #14005
49494951 return $text;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84357* (Bug 14005) editing section 0 of an existing but empty page gives no such s...reedy23:23, 19 March 2011

Status & tagging log