r47647 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47646‎ | r47647 | r47648 >
Date:04:01, 22 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
paranoia: use intval() before adding to html
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -41,7 +41,7 @@
4242 if( is_array($data) ) {
4343 $headerRows = $dataRows = '';
4444 foreach( $data as $percentile => $perValue ) {
45 - $headerRows .= "<th>P<sub>$percentile</sub></th>";
 45+ $headerRows .= "<th>P<sub>".intval($percentile)."</sub></th>";
4646 $dataRows .= '<td>'.$wgLang->formatTimePeriod($perValue).'</td>';
4747 }
4848 $reviewChart = "<table class='wikitable flaggedrevs_stats_table' style='white-space: nowrap;'>\n";

Status & tagging log