mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== SVN trunk =====
|
===== SVN trunk =====
|
||||||
|
25/02/2011
|
||||||
|
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
|
||||||
|
|
||||||
24/02/2011
|
24/02/2011
|
||||||
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
|
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
|
||||||
|
|
||||||
|
@@ -198,8 +198,12 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
if (is_callable($plugin)) {
|
if (is_callable($plugin)) {
|
||||||
// convert arguments format for old compiler plugins
|
// convert arguments format for old compiler plugins
|
||||||
$new_args = array();
|
$new_args = array();
|
||||||
foreach ($args as $mixed) {
|
foreach ($args as $key => $mixed) {
|
||||||
$new_args = array_merge($new_args, $mixed);
|
if (is_array($mixed)) {
|
||||||
|
$new_args = array_merge($new_args, $mixed);
|
||||||
|
} else {
|
||||||
|
$new_args[$key] = $mixed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $plugin($new_args, $this->smarty);
|
return $plugin($new_args, $this->smarty);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user