From: Antoine Musso Date: Fri, 6 Jan 2012 22:18:46 +0000 (+0000) Subject: rv r108284 since PHP has different behaviors X-Git-Tag: 1.31.0-rc.0~25463 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=36f6e560ec74691cb9d40ae3340c54139f828d81;p=lhc%2Fweb%2Fwiklou.git rv r108284 since PHP has different behaviors should fix jenkins --- diff --git a/languages/Language.php b/languages/Language.php index 71e12abe8e..56367dbf7a 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3820,7 +3820,7 @@ class Language { if ( $bps <= 0 ) { return str_replace( '$1', $this->formatNum( $bps ), $this->getMessageFromDB( 'bitrate-bits' ) ); } - $unitIndex = (int)floor( log( $bps, 10 ) / 3 ); + $unitIndex = (int)floor( log10( $bps ) / 3 ); $mantissa = $bps / pow( 1000, $unitIndex ); $maxIndex = count( $units ) - 1;