diff --git a/lexer/smarty_internal_templateparser.y b/lexer/smarty_internal_templateparser.y index 55530e86..87f6712e 100644 --- a/lexer/smarty_internal_templateparser.y +++ b/lexer/smarty_internal_templateparser.y @@ -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("\n", $this->compiler, true)); + res = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("\n", true)); $this->template->compiled->has_nocache_code = $save; } // template text diff --git a/libs/sysplugins/smarty_internal_templateparser.php b/libs/sysplugins/smarty_internal_templateparser.php index d5f9f143..b67eedeb 100644 --- a/libs/sysplugins/smarty_internal_templateparser.php +++ b/libs/sysplugins/smarty_internal_templateparser.php @@ -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("yystack[$this->yyidx + 0]->minor}';?>\n", - $this->compiler, true)); $this->template->compiled->has_nocache_code = $save; }