dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e915dec
)
Actually specify page_id=rev_page to avoid cartesian join bringing the site down...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 May 2008 19:58:12 +0000
(19:58 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 May 2008 19:58:12 +0000
(19:58 +0000)
includes/api/ApiQueryRevisions.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryRevisions.php
b/includes/api/ApiQueryRevisions.php
index
80cfb45
..
fb6ed48
100644
(file)
--- 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;