From bab73965516714b43c1972318190c15c8a1f2d23 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 Mar 2009 09:08:40 +0000 Subject: [PATCH] quick fix: add WHERE ar_deleted = 0. Nicer would be to make revision objects from the rows like queryRevisions does. --- includes/api/ApiQueryDeletedrevs.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index adda49f637..f2c2a1458c 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -76,6 +76,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { $this->dieUsage('user and excludeuser cannot be used together', 'badparams'); $this->addTables('archive'); + $this->addWhere('ar_deleted = 0'); $this->addFields(array('ar_title', 'ar_namespace', 'ar_timestamp')); if($fld_revid) $this->addFields('ar_rev_id'); -- 2.20.1