fix passed parameter

This commit is contained in:
uwetews
2016-03-09 03:53:12 +01:00
parent 43c5aabda5
commit 23acdf722c
2 changed files with 1 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ template_element(res)::= PHP(o). {
template_element(res)::= NOCACHE(c). { template_element(res)::= NOCACHE(c). {
$this->compiler->tag_nocache = true; $this->compiler->tag_nocache = true;
$save = $this->template->compiled->has_nocache_code; $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; $this->template->compiled->has_nocache_code = $save;
} }
// template text // template text

View File

@@ -1501,7 +1501,6 @@ class Smarty_Internal_Templateparser
$save = $this->template->compiled->has_nocache_code; $save = $this->template->compiled->has_nocache_code;
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this,
$this->compiler->processNocacheCode("<?php echo '{$this->yystack[$this->yyidx + 0]->minor}';?>\n", $this->compiler->processNocacheCode("<?php echo '{$this->yystack[$this->yyidx + 0]->minor}';?>\n",
$this->compiler,
true)); true));
$this->template->compiled->has_nocache_code = $save; $this->template->compiled->has_nocache_code = $save;
} }