- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771)

This commit is contained in:
uwe.tews@googlemail.com
2012-11-20 02:06:20 +00:00
parent b8f0d3bacb
commit 27be6508bd
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
20.11.2012
- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771)
13.11.2012
- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120)

View File

@@ -80,6 +80,11 @@ class Smarty_Internal_Data {
{
if ($varname != '') {
Smarty::$global_tpl_vars[$varname] = new Smarty_variable($value, $nocache);
$ptr = $this;
while ($ptr instanceof Smarty_Internal_Template) {
$ptr->tpl_vars[$varname] = clone Smarty::$global_tpl_vars[$varname];
$ptr = $ptr->parent;
}
}
return $this;