mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 10:13:25 +02:00
- improve template scope handling
This commit is contained in:
@@ -39,7 +39,7 @@ class Smarty_Internal_Method_Append
|
||||
// $tpl_var is an array, ignore $value
|
||||
foreach ($tpl_var as $_key => $_val) {
|
||||
if ($_key != '') {
|
||||
self::append($data, $_key, $_val, $merge, $nocache);
|
||||
$this->append($data, $_key, $_val, $merge, $nocache);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -65,6 +65,9 @@ class Smarty_Internal_Method_Append
|
||||
$data->tpl_vars[$tpl_var]->value[] = $value;
|
||||
}
|
||||
}
|
||||
if ($data->_objType == 2 && $data->scope) {
|
||||
$data->ext->_updateScope->updateScope($data, $tpl_var);
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user