- improve template scope handling

This commit is contained in:
uwetews
2015-10-29 22:17:35 +01:00
parent a0f583078d
commit 55f38125a4
17 changed files with 262 additions and 323 deletions
@@ -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;
}