From 0060c36ac9a687f3d03b281565b7f787bb23d6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 27 Sep 2016 10:04:55 +0200 Subject: [PATCH] Remove usage of Util::pow with forcing builtin pow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/Util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Util.php b/libraries/Util.php index a40a09549d..0532e8d2b9 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -1497,7 +1497,7 @@ class Util * So if we have 3,6,9,12.. free digits ($digits_left - $cur_digits) * to use, then lower the SI prefix */ - $cur_digits = floor(log10($value / self::pow(1000, $d, 'pow'))+1); + $cur_digits = floor(log10($value / pow(1000, $d))+1); if ($digits_left > $cur_digits) { $d -= floor(($digits_left - $cur_digits)/3); } @@ -1506,7 +1506,7 @@ class Util $d = 0; } - $value = round($value / (self::pow(1000, $d, 'pow') / $dh)) /$dh; + $value = round($value / (pow(1000, $d) / $dh)) /$dh; $unit = $units[$d]; // number_format is not multibyte safe, str_replace is safe