mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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:
@@ -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
|
||||
|
||||
|
@@ -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());
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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