- fixed typo in method.register_resource

This commit is contained in:
Uwe.Tews
2009-10-27 16:25:15 +00:00
parent eddbf62d03
commit 5584d80b98
2 changed files with 4 additions and 1 deletions

View File

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

View File

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