diff --git a/application/helpers/currency_helper.php b/application/helpers/currency_helper.php index d4ca49356..a63565586 100644 --- a/application/helpers/currency_helper.php +++ b/application/helpers/currency_helper.php @@ -4,7 +4,7 @@ function to_currency($number,$escape=FALSE) { $CI =& get_instance(); $currency_symbol = $CI->config->item('currency_symbol') ? $CI->config->item('currency_symbol') : '$'; - $currency_symbol = $currency_symbol == '$' && $escape ? '\$' : '$'; + $currency_symbol = $currency_symbol == '$' && $escape ? '\$' : $currency_symbol; $thousands_separator = $CI->config->item('thousands_separator') ? $CI->config->item('thousands_separator') : ''; $decimal_point = $CI->config->item('decimal_point') ? $CI->config->item('decimal_point') : '.'; if($number >= 0) @@ -28,4 +28,4 @@ function to_currency_no_money($number) { return number_format($number, 2, '.', ''); } -?> \ No newline at end of file +?>