quick fix: add WHERE ar_deleted = 0. Nicer would be to make revision objects from...
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 9 Mar 2009 09:08:40 +0000 (09:08 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 9 Mar 2009 09:08:40 +0000 (09:08 +0000)
includes/api/ApiQueryDeletedrevs.php

index adda49f..f2c2a14 100644 (file)
@@ -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');