From 13712ac86c4b3f50973c60d08a80aabc2cc540f5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 13 Sep 2008 20:41:58 +0000 Subject: [PATCH] Revert r40792. Filesort is gone, but table scan is still there for time range. --- includes/api/ApiQueryDeletedrevs.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.20.1