From: Vimal Joseph Date: Wed, 14 Jan 2015 15:42:36 +0000 (+0530) Subject: #32 - Add number_format PHP function to the Smarty MODIFIER_FUNCS X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=09b3d6c23c945821f48dc0fae3e87a533333d76b;p=com.zyxware.civiwci.git #32 - Add number_format PHP function to the Smarty MODIFIER_FUNCS --- 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'])); }