EditPage: Don't show create label for the button on new sections
authorJforrester <jforrester@wikimedia.org>
Wed, 24 Aug 2016 23:19:36 +0000 (23:19 +0000)
committerJforrester <jforrester@wikimedia.org>
Wed, 24 Aug 2016 23:25:30 +0000 (23:25 +0000)
commitd7da3e44528b9ba16391e101c841da17c1a3fed9
treebb8f7291fe4c231a342ea78d23a94707ae2d1790
parentbc335c231d3c6ca5a63936e1f3b3798384c91cbb
EditPage: Don't show create label for the button on new sections

It turns out that the helpful $this->isNew is true on new section edits,
whether or not the page exists, so instead we have to fall back on the
$this->mTitle->exists() call that partially populates isNew anyway.

Change-Id: I7d7cdecda51c6ab4b05496f0b1420cb0264fcccb
includes/EditPage.php