Allow creation of empty MediaWiki: pages
authorMatmaRex <matma.rex@gmail.com>
Mon, 1 Jul 2013 11:25:41 +0000 (13:25 +0200)
committerMatmaRex <matma.rex@gmail.com>
Tue, 2 Jul 2013 16:40:02 +0000 (18:40 +0200)
commit83cbdc6f3636c2bd2df77334b2b06240d5b7045a
tree2a445b0e3967920db675773bd6f8bc4b82c9175e
parent17ff55004c2fa2eeac6b8c246edeacbfd412abb9
Allow creation of empty MediaWiki: pages

This is useful now since it's possible to disable messages by blanking
them (see bug 14176).

Instead disallow creation of page contents equivalent to the default
message to serve the same purpose as disallowing blanking did (prevent
edits which wouldn't change anything anyway; the edit form is even
prefilled with the default contents).

Bug: 50124
Change-Id: I070036f341b866cda67eb928c5b74ad2ce6c527c
includes/EditPage.php
tests/phpunit/includes/EditPageTest.php