From a240f5a838f43fd8b99d4e454b859091b13d7af2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 17 Jul 2008 12:09:58 +0000 Subject: [PATCH] Cleanup index clause --- includes/PageHistory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 1433f3f1b9..870b57b78d 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -592,10 +592,10 @@ class PageHistoryPager extends ReverseChronologicalPager { function getQueryInfo() { $queryInfo = array( - 'tables' => array('revision'), - 'fields' => Revision::selectFields(), - 'conds' => array('rev_page' => $this->mPageHistory->mTitle->getArticleID() ), - 'options' => array( 'USE INDEX' => array('revision','page_timestamp') ) + 'tables' => array('revision'), + 'fields' => Revision::selectFields(), + 'conds' => array('rev_page' => $this->mPageHistory->mTitle->getArticleID() ), + 'options' => array( 'USE INDEX' => array('revision' => 'page_timestamp') ) ); wfRunHooks( 'PageHistoryPager::getQueryInfo', array( &$this, &$queryInfo ) ); return $queryInfo; -- 2.20.1