- 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

View File

@@ -1,4 +1,8 @@
 ===== 3.1.25===== (15.06.2015)
 ===== 3.1.26-dev===== (xx.xx.2015)
17.06.2015
- 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
===== 3.1.25===== (15.06.2015)
15.06.2015
- optimization of smarty_cachereource_keyvaluestore.php code

View File

@@ -387,7 +387,7 @@ smartytag(res)::= SIMPLETAG(t). {
res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$tag));
} else {
if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) {
res = $this->compiler->compileTag($match[1],array('nocache'));
res = $this->compiler->compileTag($match[1],array("'nocache'"));
} else {
res = $this->compiler->compileTag($tag,array());
}

View File

@@ -27,7 +27,7 @@
* @author Uwe Tews
* @author Rodney Rehm
* @package Smarty
* @version 3.1.25
* @version 3.1.26-dev
*/
/**
@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.25';
const SMARTY_VERSION = '3.1.26-dev/1';
/**
* define variable scopes

View File

@@ -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());
}