diff --git a/change_log.txt b/change_log.txt index eced9b02..aca4f579 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ 06/13/2009 - bugfix at extend resource: create unique files for compiled template and cache for each combination of template files - update extend resource to handle appen and prepend block attributes +- instantiate classes of plugins instead of calling them static 06/03/2009 - fixed repeat at block plugins diff --git a/libs/sysplugins/internal.plugin_handler.php b/libs/sysplugins/internal.plugin_handler.php index 65dde5d4..fb2299a9 100644 --- a/libs/sysplugins/internal.plugin_handler.php +++ b/libs/sysplugins/internal.plugin_handler.php @@ -45,7 +45,7 @@ class Smarty_Internal_Plugin_Handler extends Smarty_Internal_Base { $plugin = 'smarty_' . $plugin_type . '_' . $name; if ($this->smarty->loadPlugin($plugin)) { if (class_exists($plugin, false)) { - $plugin = array($plugin, 'execute'); + $plugin = array(new $plugin, 'execute'); } if (is_callable($plugin)) { $this->smarty->registered_plugins[$name] = array($plugin_type, $plugin, false);