- bugfix on nocache attribute at {assign} and {append}

This commit is contained in:
Uwe.Tews
2010-07-31 13:29:59 +00:00
parent b52cbe9adb
commit e8fbee624d
4 changed files with 23 additions and 6 deletions
@@ -32,14 +32,20 @@ class Smarty_Internal_Compile_Append extends Smarty_Internal_CompileBase {
// it shall not controll caching of the compiled code, but is a parameter
if (isset($args['nocache'])) {
if ($args['nocache'] == 'true') {
$_nocache = 'true';
$_nocache_boolean = true;
$this->compiler->tag_nocache = true;
}
unset($args['nocache']);
}
// check and get attributes
$_attr = $this->_get_attributes($args);
if ($this->compiler->tag_nocache) {
$_nocache = 'true';
// create nocache var to make it know for further compiling
$compiler->template->tpl_vars[trim($_attr['var'],"'")] = new Smarty_variable(null, true);
}
if (isset($_attr['scope'])) {
$_attr['scope'] = trim($_attr['scope'], "'\"");
if ($_attr['scope'] == 'parent') {