r46834 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46833‎ | r46834 | r46835 >
Date:06:29, 5 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
$pts counter fix
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -365,7 +365,6 @@
366366 // Label spacing
367367 $int = intval( ceil($days/10) ); // 10 labels at most
368368 while( $row = $res->fetchObject() ) {
369 - $pts++;
370369 $totalVal += (int)$row->rfh_total;
371370 $totalCount += (int)$row->rfh_count;
372371 $dayCount = (real)$row->rfh_count;
@@ -405,6 +404,7 @@
406405 $lastDate = $row->rfh_date;
407406 $lastDAve = $dayAve;
408407 $lastRAve = $cumAve;
 408+ $pts++;
409409 }
410410 // Minimum sample size
411411 if( $pts < 2 ) {

Status & tagging log