mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix "smarty" template variable was not recreated when cached templated had expired
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== SVN trunk =====
|
||||
03/03/2011
|
||||
- bugfix "smarty" template variable was not recreated when cached templated had expired
|
||||
|
||||
01/03/2011
|
||||
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
|
||||
- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of
|
||||
|
@@ -379,6 +379,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
||||
$this->cacheFileChecked = true;
|
||||
if ($this->caching === Smarty::CACHING_LIFETIME_SAVED && $this->properties['cache_lifetime'] >= 0 && (time() > ($this->getCachedTimestamp() + $this->properties['cache_lifetime']))) {
|
||||
$this->tpl_vars = array();
|
||||
$this->tpl_vars['smarty'] = new Smarty_Variable;
|
||||
$this->rendered_content = null;
|
||||
return $this->isCached;
|
||||
}
|
||||
@@ -396,6 +397,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
||||
// If ($mtime > $this->getCachedTimestamp()) {
|
||||
If ($mtime > $_file_to_check[1]) {
|
||||
$this->tpl_vars = array();
|
||||
$this->tpl_vars['smarty'] = new Smarty_Variable;
|
||||
$this->rendered_content = null;
|
||||
return $this->isCached;
|
||||
}
|
||||
|
Reference in New Issue
Block a user