mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
- bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291
|
- bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291
|
||||||
- bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because
|
- bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because
|
||||||
because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292
|
because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292
|
||||||
|
- bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282
|
||||||
|
|
||||||
11.09.2016
|
11.09.2016
|
||||||
- improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288
|
- improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288
|
||||||
|
@@ -114,7 +114,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.31-dev/20';
|
const SMARTY_VERSION = '3.1.31-dev/21';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
@@ -1103,6 +1103,9 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
} else {
|
} else {
|
||||||
$data = null;
|
$data = null;
|
||||||
}
|
}
|
||||||
|
if (!$this->_templateDirNormalized) {
|
||||||
|
$this->_nomalizeTemplateConfig(false);
|
||||||
|
}
|
||||||
$_templateId = $this->_getTemplateId($template, $cache_id, $compile_id);
|
$_templateId = $this->_getTemplateId($template, $cache_id, $compile_id);
|
||||||
$tpl = null;
|
$tpl = null;
|
||||||
if ($this->caching && isset($this->_cache[ 'isCached' ][ $_templateId ])) {
|
if ($this->caching && isset($this->_cache[ 'isCached' ][ $_templateId ])) {
|
||||||
|
Reference in New Issue
Block a user