From 7a9590359e58c81ab773e720a4e863226fb8704f Mon Sep 17 00:00:00 2001 From: jekkos Date: Tue, 14 Apr 2015 09:00:10 +0200 Subject: [PATCH] Fix currency symbol when no dollars are chosen --- application/helpers/currency_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>