made $function[2] and $function[3] options for register_resource

This commit is contained in:
messju
2003-04-28 01:33:17 +00:00
parent 217b120db3
commit 5f959fc7ec

View File

@@ -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);