API: Fix list=deletedrevs with pre-1.5 revisions
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Jul 2014 14:16:16 +0000 (10:16 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Jul 2014 14:26:39 +0000 (10:26 -0400)
commite3ba5956e0218a51bb52093ee2742ded6fb64ec3
treecad2707b14de701efb88b56278e66c6c8369261f
parentb15bfd99a94d1dfd63af9c184abfd979155b927a
API: Fix list=deletedrevs with pre-1.5 revisions

In pre-1.5, deleted revisions have the text in the ar_text field of the
archive table with empty ar_text_id. Adjust the JOIN used for
drprop=content to take this situation into account, and the logic for
extracting the revision content to match.

Bug: 67699
Change-Id: I3672435ac97fa1eff2bdf80b24c470525c93ab27
includes/api/ApiQueryDeletedrevs.php