- 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:
uwe.tews@googlemail.com
2010-12-31 13:47:12 +00:00
parent 015f817259
commit 9630a99a82
4 changed files with 45 additions and 29 deletions
@@ -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;