From 626242b7cfb5cee0a243a470e1ceb78156c59bd5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 28 Oct 2008 21:25:09 +0000 Subject: [PATCH] Spacing tweaks --- includes/PageHistory.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 03a70fb211..c637e46023 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -530,23 +530,22 @@ class PageHistory { $dbr = wfGetDB( DB_SLAVE ); if ($direction == PageHistory::DIR_PREV) - list($dirs, $oper) = array("ASC", ">="); + list($dirs, $oper) = array("ASC", ">="); else /* $direction == PageHistory::DIR_NEXT */ - list($dirs, $oper) = array("DESC", "<="); + list($dirs, $oper) = array("DESC", "<="); if ($offset) - $offsets = array("rev_timestamp $oper '$offset'"); + $offsets = array("rev_timestamp $oper '$offset'"); else - $offsets = array(); + $offsets = array(); $page_id = $this->mTitle->getArticleID(); - return $dbr->select( - 'revision', - Revision::selectFields(), - array_merge(array("rev_page=$page_id"), $offsets), - __METHOD__, - array('ORDER BY' => "rev_timestamp $dirs", + return $dbr->select( 'revision', + Revision::selectFields(), + array_merge(array("rev_page=$page_id"), $offsets), + __METHOD__, + array( 'ORDER BY' => "rev_timestamp $dirs", 'USE INDEX' => 'page_timestamp', 'LIMIT' => $limit) ); } -- 2.20.1