From: Aaron Schulz Date: Tue, 13 May 2008 19:58:12 +0000 (+0000) Subject: Actually specify page_id=rev_page to avoid cartesian join bringing the site down... X-Git-Tag: 1.31.0-rc.0~47657 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=ae152b63bf1f3105c2472e4190a8f0b003046387;p=lhc%2Fweb%2Fwiklou.git Actually specify page_id=rev_page to avoid cartesian join bringing the site down again --- diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 80cfb45d9e..fb6ed480d1 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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;