From 565e80a66c8a2af620508b0e97e14e5be410308d Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 10 Jul 2001 15:15:42 +0000 Subject: [PATCH] Adding 'sizeof' as an allowed {if} function. --- Smarty.class.php | 3 ++- libs/Smarty.class.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 43aed232..ec292342 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -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') diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 43aed232..ec292342 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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')