r12970 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12969‎ | r12970 | r12971 >
Date:05:24, 7 February 2006
Author:timstarling
Status:old
Tags:
Comment:
rc_timestamp >= $cutoff instead of rc_timestamp > $cutoff, so that duplicates may be shown but entries are never missed.
Modified paths:
  • /trunk/phase3/includes/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRecentchanges.php
@@ -139,7 +139,7 @@
140140 // Perform query
141141 $sql2 = "SELECT * FROM $recentchanges FORCE INDEX (rc_timestamp) " .
142142 ($uid ? "LEFT OUTER JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : "") .
143 - "WHERE rc_timestamp > '{$cutoff}' {$hidem} " .
 143+ "WHERE rc_timestamp >= '{$cutoff}' {$hidem} " .
144144 "ORDER BY rc_timestamp DESC";
145145 $sql2 = $dbr->limitResult($sql2, $limit, 0);
146146 $res = $dbr->query( $sql2, $fname );

Status & tagging log