Index: trunk/extensions/ContributionReporting/ContributionTrackingStatistics_body.php |
— | — | @@ -44,13 +44,12 @@ |
45 | 45 | /* Wrapper */ |
46 | 46 | public function showDayTotalsForLastDays( $num_days ){ |
47 | 47 | //Seriously, PHP 5.3 has cleaner ways of doing this, till then strtotime to the rescue! |
48 | | - $end_day = new DateTime( "now" ); |
| 48 | + $current_day = new DateTime( "now" ); |
49 | 49 | ++$num_days; //really you probably don't want today |
50 | | - $end_day->modify("-$num_days days"); |
51 | | - |
52 | | - for( $i = 0 ; $i < ($num_days - 2) ; $i++){ //you don't want today |
| 50 | + |
| 51 | + for( $i = 0 ; $i < ($num_days - 1) ; $i++){ //you don't want today |
53 | 52 | $this->showDayTotals(false, $end_day->format("YmdHis")); //MW Format |
54 | | - $end_day->modify("+1 day"); |
| 53 | + $current_day->modify("-1 day"); |
55 | 54 | } |
56 | 55 | } |
57 | 56 | |