r42749 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42748‎ | r42749 | r42750 >
Date:21:25, 28 October 2008
Author:aaron
Status:old
Tags:
Comment:
Spacing tweaks
Modified paths:
  • /trunk/phase3/includes/PageHistory.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/PageHistory.php
@@ -530,23 +530,22 @@
531531 $dbr = wfGetDB( DB_SLAVE );
532532
533533 if ($direction == PageHistory::DIR_PREV)
534 - list($dirs, $oper) = array("ASC", ">=");
 534+ list($dirs, $oper) = array("ASC", ">=");
535535 else /* $direction == PageHistory::DIR_NEXT */
536 - list($dirs, $oper) = array("DESC", "<=");
 536+ list($dirs, $oper) = array("DESC", "<=");
537537
538538 if ($offset)
539 - $offsets = array("rev_timestamp $oper '$offset'");
 539+ $offsets = array("rev_timestamp $oper '$offset'");
540540 else
541 - $offsets = array();
 541+ $offsets = array();
542542
543543 $page_id = $this->mTitle->getArticleID();
544544
545 - return $dbr->select(
546 - 'revision',
547 - Revision::selectFields(),
548 - array_merge(array("rev_page=$page_id"), $offsets),
549 - __METHOD__,
550 - array('ORDER BY' => "rev_timestamp $dirs",
 545+ return $dbr->select( 'revision',
 546+ Revision::selectFields(),
 547+ array_merge(array("rev_page=$page_id"), $offsets),
 548+ __METHOD__,
 549+ array( 'ORDER BY' => "rev_timestamp $dirs",
551550 'USE INDEX' => 'page_timestamp', 'LIMIT' => $limit)
552551 );
553552 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r42753Forgot to update RELEASE-NOTES for r42749charlie23:14, 28 October 2008

Status & tagging log