Revert r40792. Filesort is gone, but table scan is still there for time range.
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 13 Sep 2008 20:41:58 +0000 (20:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 13 Sep 2008 20:41:58 +0000 (20:41 +0000)
includes/api/ApiQueryDeletedrevs.php

index 8a0c85b..fcb80d5 100644 (file)
@@ -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);