mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix passed parameter
This commit is contained in:
@@ -275,7 +275,7 @@ template_element(res)::= PHP(o). {
|
||||
template_element(res)::= NOCACHE(c). {
|
||||
$this->compiler->tag_nocache = true;
|
||||
$save = $this->template->compiled->has_nocache_code;
|
||||
res = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("<?php echo '{c}';?>\n", $this->compiler, true));
|
||||
res = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("<?php echo '{c}';?>\n", true));
|
||||
$this->template->compiled->has_nocache_code = $save;
|
||||
}
|
||||
// template text
|
||||
|
@@ -1501,7 +1501,6 @@ class Smarty_Internal_Templateparser
|
||||
$save = $this->template->compiled->has_nocache_code;
|
||||
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this,
|
||||
$this->compiler->processNocacheCode("<?php echo '{$this->yystack[$this->yyidx + 0]->minor}';?>\n",
|
||||
$this->compiler,
|
||||
true));
|
||||
$this->template->compiled->has_nocache_code = $save;
|
||||
}
|
||||
|
Reference in New Issue
Block a user