Adding 'sizeof' as an allowed {if} function.

This commit is contained in:
andrey
2001-07-10 15:15:42 +00:00
parent a6e3ad55c9
commit 565e80a66c
2 changed files with 4 additions and 2 deletions

View File

@@ -120,7 +120,8 @@ class Smarty
'PHP_HANDLING' => false,
'IF_FUNCS' => array('array', 'list',
'isset', 'empty',
'count', 'in_array'),
'count', 'sizeof',
'in_array'),
'INCLUDE_ANY' => false,
'PHP_TAGS' => false,
'MODIFIER_FUNCS' => array('count')

View File

@@ -120,7 +120,8 @@ class Smarty
'PHP_HANDLING' => false,
'IF_FUNCS' => array('array', 'list',
'isset', 'empty',
'count', 'in_array'),
'count', 'sizeof',
'in_array'),
'INCLUDE_ANY' => false,
'PHP_TAGS' => false,
'MODIFIER_FUNCS' => array('count')