From: Aaron Schulz Date: Tue, 28 Oct 2008 21:22:20 +0000 (+0000) Subject: Paranoid page table check X-Git-Tag: 1.31.0-rc.0~44526 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=2ab48f2970ca9821654ed1d66316d6280537f80e;p=lhc%2Fweb%2Fwiklou.git Paranoid page table check --- diff --git a/includes/specials/SpecialMergeHistory.php b/includes/specials/SpecialMergeHistory.php index 8756c624bd..d16f3085b2 100644 --- a/includes/specials/SpecialMergeHistory.php +++ b/includes/specials/SpecialMergeHistory.php @@ -434,10 +434,10 @@ class MergeHistoryPager extends ReverseChronologicalPager { function getQueryInfo() { $conds = $this->mConds; $conds['rev_page'] = $this->articleID; + $conds['page_id'] = 'rev_page'; $conds[] = "rev_timestamp < {$this->maxTimestamp}"; - return array( - 'tables' => array('revision'), + 'tables' => array('revision','page'), 'fields' => array( 'rev_minor_edit', 'rev_timestamp', 'rev_user', 'rev_user_text', 'rev_comment', 'rev_id', 'rev_page', 'rev_text_id', 'rev_len', 'rev_deleted' ), 'conds' => $conds