mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- fixed typo in method.register_resource
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user