diff --git a/config/smarty.config.inc.php b/config/smarty.config.inc.php index 0a66fed853afc..6fa40c63e7857 100644 --- a/config/smarty.config.inc.php +++ b/config/smarty.config.inc.php @@ -119,6 +119,18 @@ function smartyEscape($string, $esc_type = 'html', $char_set = null, $double_enc smartyRegisterFunction($smarty, 'modifier', 'var_dump', 'var_dump'); smartyRegisterFunction($smarty, 'modifier', 'lcfirst', 'lcfirst'); smartyRegisterFunction($smarty, 'modifier', 'nl2br', 'nl2br'); +smartyRegisterFunction($smarty, 'modifier', 'sizeof', 'sizeof'); +smartyRegisterFunction($smarty, 'modifier', 'in_array', 'in_array'); +smartyRegisterFunction($smarty, 'modifier', 'substr', 'substr'); +smartyRegisterFunction($smarty, 'modifier', 'intval', 'intval'); +smartyRegisterFunction($smarty, 'modifier', 'date', 'date'); +smartyRegisterFunction($smarty, 'modifier', 'trim', 'trim'); +smartyRegisterFunction($smarty, 'modifier', 'json_encode', 'json_encode'); +smartyRegisterFunction($smarty, 'modifier', 'in_array', 'in_array'); +smartyRegisterFunction($smarty, 'modifier', 'stripslashes', 'stripslashes'); +smartyRegisterFunction($smarty, 'modifier', 'mt_rand', 'mt_rand'); +smartyRegisterFunction($smarty, 'modifier', 'md5', 'md5'); +smartyRegisterFunction($smarty, 'modifier', 'floatval', 'floatval'); function smarty_modifier_htmlentitiesUTF8($string) {