mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- 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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user