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