Browse Source

add spacer in prise

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@54 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
ejikharev 16 years ago
parent
commit
0a08ef6d55
  1. 2
      classes/Format.class.php

2
classes/Format.class.php

@ -39,7 +39,7 @@ class Format
static public function int2money($int = 0, $currency = false) static public function int2money($int = 0, $currency = false)
{ {
if(!isset(self::$cache_money[$int])){ if(!isset(self::$cache_money[$int])){
self::$cache_money[$int] = number_format($int/100, self::$frac_digits, self::$decimal_point, '');
self::$cache_money[$int] = number_format($int/100, self::$frac_digits, self::$decimal_point, ' ');
} }
return self::$cache_money[$int] . (($currency) ? ' '.self::$currency_symbol : ''); return self::$cache_money[$int] . (($currency) ? ' '.self::$currency_symbol : '');
} }

Loading…
Cancel
Save