From 09b3d6c23c945821f48dc0fae3e87a533333d76b Mon Sep 17 00:00:00 2001 From: Vimal Joseph Date: Wed, 14 Jan 2015 21:12:36 +0530 Subject: [PATCH] #32 - Add number_format PHP function to the Smarty MODIFIER_FUNCS --- CRM/Wci/WidgetCode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Wci/WidgetCode.php b/CRM/Wci/WidgetCode.php index c243cd0..1dc6aed 100644 --- a/CRM/Wci/WidgetCode.php +++ b/CRM/Wci/WidgetCode.php @@ -39,6 +39,7 @@ class CRM_Wci_WidgetCode { $template->template_dir[] = getWciWidgetTemplatePath(); $wcidata = $template->fetch('WCIWidget.tpl'); } else { + $template->security_settings['MODIFIER_FUNCS'] = array('number_format', 'count'); $wcidata = $template->fetch('string:' . html_entity_decode($data['custom_template'])); } -- 2.25.1