mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
- bugfix on nocache attribute at {assign} and {append}
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user