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 @@
4944
4944
4945
4945
# Find the target section
4946
4946
if ( $sectionIndex == 0 ) {
4947
+ # Section zero doesn't nest, level=big
4948
+ $targetLevel = 1000;
4947
4949
if ( !$node ) {
4948
4950
# The page definitely exists - we checked that earlier - so it must be blank: see bug #14005
4949
4951
return $text;
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r84357
* (
Bug 14005
) editing section 0 of an existing but empty page gives no such s...
reedy
23:23, 19 March 2011
Status & tagging log
06:56, 5 September 2011
Tim Starling
(
talk
|
contribs
)
changed the
status
of r84451
[
removed:
ok
added:
reverted]
21:18, 27 June 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r84451
[
removed:
new
added:
ok]