mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 10:13:25 +02:00
- bugfix dynamic configuration of $debugging_crtl did not work
- bugfix default value of $config_read_hidden changed to false - bugfix format of attribute array on compiler plugins - bugfix getTemplateVars() could return value from wrong scope
This commit is contained in:
@@ -196,7 +196,12 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
if ($plugin_type == Smarty::PLUGIN_BLOCK && $this->smarty->loadPlugin('smarty_compiler_' . $tag)) {
|
||||
$plugin = 'smarty_compiler_' . $tag;
|
||||
if (is_callable($plugin)) {
|
||||
return $plugin($args, $this->smarty);
|
||||
// convert arguments format for old compiler plugins
|
||||
$new_args = array();
|
||||
foreach ($args as $mixed) {
|
||||
$new_args = array_merge($new_args, $mixed);
|
||||
}
|
||||
return $plugin($new_args, $this->smarty);
|
||||
}
|
||||
if (class_exists($plugin, false)) {
|
||||
$plugin_object = new $plugin;
|
||||
|
||||
Reference in New Issue
Block a user