ApiComparePages: Don't try to find next/prev of a deleted revision
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 7 Nov 2018 16:01:26 +0000 (11:01 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 3 Dec 2018 20:31:34 +0000 (15:31 -0500)
commit3c95d3bdd935768b246d0688eaaa258feeecd4e6
tree8e2a3fbac4e37d17819ca8379cb454fc83fcf441
parentee00b6853b263f426da60a179357e39edc37bfd5
ApiComparePages: Don't try to find next/prev of a deleted revision

RevisionStore::getPreviousRevision() and ::getNextRevision() don't
handle being passed a RevisionArchiveRecord very well. Even if they
would, it's not clear whether the user wants to be comparing with the
next/previous deleted revision or the next/previous revision even if not
deleted. So let's just make it an error, at least for now.

Bug: T208929
Change-Id: I151019e336bda92aa4040ba4162eb2588c909652
includes/api/ApiComparePages.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
tests/phpunit/includes/api/ApiComparePagesTest.php