diff options
author | plegall <plg@piwigo.org> | 2016-01-21 15:10:02 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-01-21 15:10:02 +0100 |
commit | d33051cb7236a930c1baf879fee75e92c35a93ee (patch) | |
tree | 4f7c596268420cc670cbbf767d941fadb07a1b26 /include/smarty/libs/sysplugins/smarty_cacheresource.php | |
parent | 491464355911334ecbf49b742545286e82961112 (diff) |
update to Smarty 3.1.29
Diffstat (limited to '')
-rw-r--r-- | include/smarty/libs/sysplugins/smarty_cacheresource.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_cacheresource.php b/include/smarty/libs/sysplugins/smarty_cacheresource.php index 8cd2805a5..14ab62fd9 100644 --- a/include/smarty/libs/sysplugins/smarty_cacheresource.php +++ b/include/smarty/libs/sysplugins/smarty_cacheresource.php @@ -215,12 +215,9 @@ abstract class Smarty_CacheResource */ public function invalidLoadedCache(Smarty $smarty) { - if (isset($smarty->_cache['template_objects'])) { - foreach ($smarty->_cache['template_objects'] as $key => $tpl) { - if (isset($tpl->cached)) { - unset ($smarty->_cache['template_objects'][$key]); - } - } + $smarty->_cache['isCached'] = array(); + if (isset($smarty->ext->_subtemplate)) { + $smarty->ext->_subtemplate->tplObjects = array(); } } } |