mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Adding 'sizeof' as an allowed {if} function.
This commit is contained in:
@@ -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')
|
||||
|
@@ -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')
|
||||
|
Reference in New Issue
Block a user