#32 - Add number_format PHP function to the Smarty MODIFIER_FUNCS
authorVimal Joseph <vimal.joseph@zyxware.com>
Wed, 14 Jan 2015 15:42:36 +0000 (21:12 +0530)
committerVimal Joseph <vimal.joseph@zyxware.com>
Wed, 14 Jan 2015 15:42:36 +0000 (21:12 +0530)
CRM/Wci/WidgetCode.php

index c243cd09c8a761ab450decac0eaa7fd39c5cc5dd..1dc6aeda2987f74ee149a6271370c0c8cf824afa 100644 (file)
@@ -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']));
     }