r44995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44994‎ | r44995 | r44996 >
Date:00:27, 24 December 2008
Author:aaron
Status:ok
Tags:
Comment:
Use $days, the *actual* interval, not the max range, for deciding date formatting
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -411,7 +411,7 @@
412412 $n++;
413413 # Label point?
414414 if( $n >= $int || !count($dataX) ) {
415 - $p = ($this->period > 31) ? "{$month}-".substr( $year, 2, 2 ) : "{$month}/{$day}";
 415+ $p = ($days > 31) ? "{$month}-".substr( $year, 2, 2 ) : "{$month}/{$day}";
416416 $n = 0;
417417 } else {
418418 $p = "";

Status & tagging log