Enable the creation of empty pages
authorÉtienne Beaulé <beauleetienne0@gmail.com>
Sun, 13 Jul 2014 01:36:37 +0000 (21:36 -0400)
committerÉtienne Beaulé <beauleetienne0@gmail.com>
Sat, 26 Jul 2014 03:26:18 +0000 (23:26 -0400)
commitc3fcaba02f7fbc4af288f716f630f6cbf0389221
tree35f77b586da1fc90ce64341ee92cd21e5800cedf
parent1137960eea700dc4998084d3c99e87150bad6525
Enable the creation of empty pages

This change enables the direct creation of empty pages without needing
to use a work-around (such as "{{subst:ns:0}}"). A warning is added as
the message "blankarticle" to request confirmation that the empty page
was meant to be blank. A automatic edit summary has been added when
creating a blank page. The message is: "autosumm-newblank."

The API has been updated to permit the creation of empty pages, when
"text" is null, but not non-existant.

Unit tests have also been added to test these features.

Bug: 57238
Bug: 65206
Change-Id: I3457c36a909d1dbfaeed04a1f0568c69e0ef3386
RELEASE-NOTES-1.24
includes/EditPage.php
includes/api/ApiEditPage.php
includes/content/ContentHandler.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/EditPageTest.php
tests/phpunit/includes/api/ApiEditPageTest.php