Actually detect duplicate section=new submissions
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 7 Jul 2014 22:42:02 +0000 (18:42 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 7 Jul 2014 22:49:04 +0000 (18:49 -0400)
commit355cbd2e3e19eef455383e398cbeb636757c379f
tree69dadba5bfa7213f2ada8e8243c74ed081ffde9c
parenta574a40dc588a68d041b08c752b306c617a23428
Actually detect duplicate section=new submissions

The current check will basically never pass, since it's looking for the
submitted section title to match the section title inserted into the
'newsectionsummary' message.

So let's factor out the code for applying 'newsectionsummary' and use
that for the conflict check. We can't just update $this->summary
earlier, since later checks depend on looking at the submitted summary
rather than the mangled one.

Bug: 67634
Change-Id: I72890c0641f991696ec98b50a6a42b2be7f46f63
includes/EditPage.php