From: Aaron Schulz Date: Sat, 13 Sep 2008 20:41:58 +0000 (+0000) Subject: Revert r40792. Filesort is gone, but table scan is still there for time range. X-Git-Tag: 1.31.0-rc.0~45321 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=13712ac86c4b3f50973c60d08a80aabc2cc540f5;p=lhc%2Fweb%2Fwiklou.git Revert r40792. Filesort is gone, but table scan is still there for time range. --- diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 8a0c85b128..fcb80d52df 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -107,11 +107,8 @@ class ApiQueryDeletedrevs extends ApiQueryBase { $lb = new LinkBatch($titles); $where = $lb->constructSet('ar', $db); $this->addWhere($where); - } - else - { - $dir = ($params['dir'] == 'older' ? 'DESC' : ''); - $this->addOption('ORDER BY', "ar_namespace $dir, ar_title $dir"); + } else { + $this->dieUsage('You have to specify a page title or titles'); } $this->addOption('LIMIT', $limit + 1);