From 9427f4e76b200ba74b487860cb7a046ccea62717 Mon Sep 17 00:00:00 2001 From: Vincent Gabriel <vadimg88@gmail.com> Date: Sun, 23 Feb 2014 16:36:17 -0800 Subject: [PATCH] no need for as number #2524 --- framework/base/Formatter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/base/Formatter.php b/framework/base/Formatter.php index fcec1d1..569b423 100644 --- a/framework/base/Formatter.php +++ b/framework/base/Formatter.php @@ -412,7 +412,6 @@ class Formatter extends Component * @return string the formatted result * @see decimalSeparator * @see thousandSeparator - * @see asNumber */ public function asSize($value, $decimals = 0) { @@ -428,6 +427,6 @@ class Formatter extends Component $position++; } while ($position < count($units)); - return $this->asNumber($value, $decimals) . Yii::t('yii', end($units)); + return number_format($value, $decimals) . Yii::t('yii', end($units)); } } -- libgit2 0.27.1