diff options
Diffstat (limited to 'maintenance/language/StatOutputs.php')
-rw-r--r-- | maintenance/language/StatOutputs.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/language/StatOutputs.php b/maintenance/language/StatOutputs.php index 257fe146..534a8b48 100644 --- a/maintenance/language/StatOutputs.php +++ b/maintenance/language/StatOutputs.php @@ -26,9 +26,9 @@ /** A general output object. Need to be overridden */ class StatsOutput { function formatPercent( $subset, $total, $revert = false, $accuracy = 2 ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $return = sprintf( '%.' . $accuracy . 'f%%', 100 * $subset / $total ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); return $return; } @@ -92,9 +92,9 @@ class WikiStatsOutput extends StatsOutput { } function formatPercent( $subset, $total, $revert = false, $accuracy = 2 ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $v = round( 255 * $subset / $total ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $revert ) { # Weigh reverse with factor 20 so coloring takes effect more quickly as |