r23306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23305‎ | r23306 | r23307 >
Date:20:00, 23 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix bug with year 9999
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -94,7 +94,9 @@
9595 $ts_end = str_pad($year_end . $month_end, 14, '0' );
9696
9797 $condition[] = "rev_timestamp >= $ts_start";
98 - $condition[] = "rev_timestamp < $ts_end";
 98+ # If just given the year 9999, we need not enforce an upper bound
 99+ if( strlen($year_end) <= 4 )
 100+ $condition[] = "rev_timestamp < $ts_end";
99101 }
100102
101103 return $condition;

Follow-up revisions

RevisionCommit summaryAuthorDate
r23407Merged revisions 23203-23405 via svnmerge from...david23:00, 25 June 2007

Status & tagging log