r16691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16690‎ | r16691 | r16692 >
Date:06:57, 29 September 2006
Author:yurik
Status:old
Tags:
Comment:
* QueryAPI fix: page & revisions should be joined on two fields, not one.
Modified paths:
  • /trunk/extensions/BotQuery/query.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BotQuery/query.php
@@ -1206,7 +1206,7 @@
12071207 $res = $this->db->select(
12081208 array('page', 'revision', 'text'),
12091209 array('page_id', 'page_is_redirect', 'old_id', 'old_text', 'old_flags'),
1210 - array('page_id' => $multiLinkRedirPages, 'page_latest=rev_id', 'rev_text_id=old_id' ),
 1210+ array('page_id' => $multiLinkRedirPages, 'page_id=rev_page', 'page_latest=rev_id', 'rev_text_id=old_id' ),
12111211 $this->classname . '::genPageContent'
12121212 );
12131213 while ( $row = $this->db->fetchObject( $res ) ) {
@@ -2797,4 +2797,4 @@
27982798 return false;
27992799 }
28002800
2801 -?>
\ No newline at end of file
 2801+?>