Currency format #14
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@111 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -52,9 +52,9 @@ class Format
|
|||||||
{
|
{
|
||||||
$money = number_format($int/100, ($show_decimals) ? self::$frac_digits : 0, self::$decimal_point, ' ');
|
$money = number_format($int/100, ($show_decimals) ? self::$frac_digits : 0, self::$decimal_point, ' ');
|
||||||
if ($currency) {
|
if ($currency) {
|
||||||
return str_replace(' ', html_entity_decode(' ', ENT_COMPAT, 'UTF-8'), $money) . (($currency) ? ' ' . self::$currency_symbol : '');
|
return str_replace(' ', html_entity_decode(' ', ENT_COMPAT, 'UTF-8'), $money) . ' ' . self::$currency_symbol;
|
||||||
} else {
|
} else {
|
||||||
return $money . (($currency) ? ' ' . self::$currency_symbol : '');
|
return $money;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user