- bugfix calling a plugin with nocache option but no other attributes like {foo nocache} caused call to undefined function https://github.com/smarty-php/smarty/issues/55

This commit is contained in:
Uwe Tews
2015-06-18 00:06:40 +02:00
parent 58616d6ee5
commit 52ced72361
4 changed files with 9 additions and 5 deletions
@@ -1375,7 +1375,7 @@ class Smarty_Internal_Templateparser
$this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag));
} else {
if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) {
$this->_retvalue = $this->compiler->compileTag($match[1], array('nocache'));
$this->_retvalue = $this->compiler->compileTag($match[1], array("'nocache'"));
} else {
$this->_retvalue = $this->compiler->compileTag($tag, array());
}