From: Aaron Schulz Date: Mon, 9 Mar 2009 09:08:40 +0000 (+0000) Subject: quick fix: add WHERE ar_deleted = 0. Nicer would be to make revision objects from... X-Git-Tag: 1.31.0-rc.0~42560 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=bab73965516714b43c1972318190c15c8a1f2d23;p=lhc%2Fweb%2Fwiklou.git quick fix: add WHERE ar_deleted = 0. Nicer would be to make revision objects from the rows like queryRevisions does. --- 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');