From d7cff18eb3691612d5a5a6f78d4d12622a430070 Mon Sep 17 00:00:00 2001 From: aterekhov Date: Tue, 17 Nov 2009 22:15:41 +0000 Subject: [PATCH] Currency format   #14 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@111 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Format.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Format.class.php b/classes/Format.class.php index d47e8fd..215ef30 100644 --- a/classes/Format.class.php +++ b/classes/Format.class.php @@ -52,9 +52,9 @@ class Format { $money = number_format($int/100, ($show_decimals) ? self::$frac_digits : 0, self::$decimal_point, ' '); 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 { - return $money . (($currency) ? ' ' . self::$currency_symbol : ''); + return $money; } }