update smarty to version 3.1.29

This commit is contained in:
Mario Vavti
2016-04-23 21:24:22 +02:00
parent 78bf4564f2
commit 7e30c1dd82
29 changed files with 1417 additions and 1383 deletions

View File

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