From 5f959fc7ec72ca3370972658d86b5c4c81c642bb Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 28 Apr 2003 01:33:17 +0000 Subject: [PATCH] made $function[2] and $function[3] options for register_resource --- libs/Smarty.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index c4227fd1..61fe7af0 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -798,7 +798,7 @@ class Smarty */ function register_resource($type, $functions) { - if (sizeof($functions)==4) { + if (sizeof($functions)<5) { $this->_plugins['resource'][$type] = array($functions, false);