r53745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53744‎ | r53745 | r53746 >
Date:14:10, 25 July 2009
Author:demon
Status:ok
Tags:
Comment:
Use wfSuppressWarnings()/wfRestoreWarnings() per CR on r39789. Also remove trailing ?>
Modified paths:
  • /trunk/extensions/FlaggedRevs/svggraph/svgGraph.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/svggraph/svgGraph.php
@@ -715,8 +715,10 @@
716716 if ($max < 0) $factor = - pow(10, (floor(log10(abs($max))) + $resolution) );
717717 else $factor = pow(10, (floor(log10(abs($max))) - $resolution) );
718718 }
719 - $max = $factor * @ceil($max / $factor);
720 - $min = $factor * @floor($min / $factor);
 719+ wfSuppressWarnings();
 720+ $max = $factor * ceil($max / $factor);
 721+ $min = $factor * floor($min / $factor);
 722+ wfRestoreWarnings();
721723
722724 return array('min' => $min, 'max' => $max);
723725 }
@@ -766,5 +768,3 @@
767769 }
768770
769771 }
770 -
771 -?>

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r39789* Add svg graph library and support it in RatingHistory...aaron21:52, 21 August 2008

Status & tagging log