mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- instantiate classes of plugins instead of calling them static
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
06/13/2009
|
06/13/2009
|
||||||
- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files
|
- 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
|
- update extend resource to handle appen and prepend block attributes
|
||||||
|
- instantiate classes of plugins instead of calling them static
|
||||||
|
|
||||||
06/03/2009
|
06/03/2009
|
||||||
- fixed repeat at block plugins
|
- fixed repeat at block plugins
|
||||||
|
@@ -45,7 +45,7 @@ class Smarty_Internal_Plugin_Handler extends Smarty_Internal_Base {
|
|||||||
$plugin = 'smarty_' . $plugin_type . '_' . $name;
|
$plugin = 'smarty_' . $plugin_type . '_' . $name;
|
||||||
if ($this->smarty->loadPlugin($plugin)) {
|
if ($this->smarty->loadPlugin($plugin)) {
|
||||||
if (class_exists($plugin, false)) {
|
if (class_exists($plugin, false)) {
|
||||||
$plugin = array($plugin, 'execute');
|
$plugin = array(new $plugin, 'execute');
|
||||||
}
|
}
|
||||||
if (is_callable($plugin)) {
|
if (is_callable($plugin)) {
|
||||||
$this->smarty->registered_plugins[$name] = array($plugin_type, $plugin, false);
|
$this->smarty->registered_plugins[$name] = array($plugin_type, $plugin, false);
|
||||||
|
Reference in New Issue
Block a user