(bug 41042) Regression: API action=parse with nonexistent page
authorBrad Jorsch <anomie.wikipedia@gmail.com>
Tue, 16 Oct 2012 15:42:54 +0000 (11:42 -0400)
committerBrad Jorsch <anomie.wikipedia@gmail.com>
Mon, 29 Oct 2012 17:38:33 +0000 (13:38 -0400)
commit3756f810bc184c299c015e133c7d61d5068e70c8
tree744e0c9f2337a8762e697fb2c1286ab4aaf86a8e
parent42ff119e8a835e9791202995f92c38042792721b
(bug 41042) Regression: API action=parse with nonexistent page

Changeset Iec98e472 changed the behavior of action=parse&page=... when
passed a page that does not exist: previously, it would return a
"missingtitle" error instead of assuming an empty page. As some people
had been depending on this old behavior, restore the error checking.

Change-Id: I4c76ce458ceb01e233c6074cd9251879013ec143
RELEASE-NOTES-1.21
includes/api/ApiParse.php
tests/phpunit/includes/api/ApiParseTest.php [new file with mode: 0644]