Prevent revisions with rev_page = 0 from being inserted into the DB
authorThis, that and the other <at.light@live.com.au>
Tue, 19 Jan 2016 23:30:32 +0000 (10:30 +1100)
committerThis, that and the other <at.light@live.com.au>
Tue, 19 Jan 2016 23:30:32 +0000 (10:30 +1100)
commit8fc9222c7ea2f7df12e4c67564058050364a6ea7
treeaf4ad25e099204cee6dec4351f392e9e8ce55c5e
parent5a93e6b00b75aa60718ac43e068c4a28c8276fee
Prevent revisions with rev_page = 0 from being inserted into the DB

There's no good reason to ever do this, or to write code that lets it
happen. The revisions are just going to sit around in the DB, not
connected to anything (except maybe in some page's page_latest field,
if you're lucky). Any operations that do this should fail fast instead
of spamming the DB and appearing to "succeed".

Bug: T18674
Change-Id: I8219153a09adb1c556d0159a4fb0799895370a94
includes/Revision.php