From 5584d80b98502b185122f78c2ddaa68f932ae61e Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Tue, 27 Oct 2009 16:25:15 +0000 Subject: [PATCH] - fixed typo in method.register_resource --- change_log.txt | 3 +++ libs/sysplugins/method.register_resource.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index aa508715..eb258a05 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +10/27/2009 +- fixed typo in method.regsiter_resource + 10/26/2009 - merge only compiled subtemplates into the compiled code of the main template diff --git a/libs/sysplugins/method.register_resource.php b/libs/sysplugins/method.register_resource.php index fb67eec3..a1725612 100644 --- a/libs/sysplugins/method.register_resource.php +++ b/libs/sysplugins/method.register_resource.php @@ -23,7 +23,7 @@ function register_resource($smarty, $type, $functions) $smarty->_plugins['resource'][$type] = array($functions, false); } elseif (count($functions) == 5) { - $smarty->plugins['resource'][$type] = + $smarty->_plugins['resource'][$type] = array(array(array(&$functions[0], $functions[1]) , array(&$functions[0], $functions[2]) , array(&$functions[0], $functions[3]) , array(&$functions[0], $functions[4])) , false); } else { throw new Exception("malformed function-list for '$type' in register_resource");