Actually specify page_id=rev_page to avoid cartesian join bringing the site down...
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 May 2008 19:58:12 +0000 (19:58 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 May 2008 19:58:12 +0000 (19:58 +0000)
includes/api/ApiQueryRevisions.php

index 80cfb45..fb6ed48 100644 (file)
@@ -165,6 +165,7 @@ class ApiQueryRevisions extends ApiQueryBase {
 
                        // Get all revision IDs
                        $this->addWhereFld('rev_id', array_keys($pageSet->getRevisionIDs()));
+                       $this->addWhere('page_id=rev_page');
 
                        // assumption testing -- we should never get more then $revCount rows.
                        $limit = $revCount;