- added global variable scope SMARTY_GLOBAL_SCOPE

- enable 'variable' filter by default
This commit is contained in:
Uwe.Tews
2009-04-10 12:33:51 +00:00
parent 33082844a5
commit eace27e2b6
10 changed files with 521 additions and 540 deletions
@@ -47,6 +47,11 @@ class Smarty_Method_Get_Template_Vars extends Smarty_Internal_Base {
$_ptr = null;
}
}
if ($search_parents) {
foreach ($this->smarty->global_tpl_vars AS $key => $var) {
$_result[$key] = $var->value;
}
}
return $_result;
}
}