From bd85ce9f516ca7d31edbff8f194bac372d40c57b Mon Sep 17 00:00:00 2001 From: abijah Date: Thu, 6 Aug 2009 05:04:34 +0000 Subject: [PATCH] Added ability to format currency without a dollar sign (i.e. in raw numerical format). git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@492 97e9348a-65ac-dc4b-aefc-98561f571b83 --- views/helpers/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/helpers/format.php b/views/helpers/format.php index b32d920..976d26c 100644 --- a/views/helpers/format.php +++ b/views/helpers/format.php @@ -19,13 +19,13 @@ class FormatHelper extends AppHelper { true)); } - function currency($amount, $spans = false) { + function currency($amount, $spans = false, $dollar_sign = null) { if (!isset($amount)) return '-'; //return null; $currency = self::$number->currency($amount, - 'USD', + isset($dollar_sign) ? $dollar_sign : 'USD', $spans ? array('before'=>'', 'after'=>'') : array()); if ($spans)