Currence format   #14

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@109 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
aterekhov
2009-11-17 21:19:10 +00:00
parent f02672c92a
commit 0488fe9b5c

View File

@ -51,7 +51,7 @@ class Format
static public function int2money($int = 0, $currency = false, $show_decimals = true)
{
$money = number_format($int/100, ($show_decimals) ? self::$frac_digits : 0, self::$decimal_point, ' ');
return $money . (($currency) ? ' ' . self::$currency_symbol : '');
return str_replace(' ', html_entity_decode(' ', ENT_COMPAT, 'UTF-8'), $money) . (($currency) ? ' ' . self::$currency_symbol : '');
}
static public function money2int($money)