- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce

an exception (Forum Topic 20531)
This commit is contained in:
uwe.tews@googlemail.com
2011-11-30 16:31:25 +00:00
parent f14c4bfb9c
commit 678b28769d
2 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,8 @@
===== trunk =====
30.11.2011
- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce
an exception (Forum Topic 20531)
29.11.2011
- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512)

View File

@@ -299,6 +299,7 @@ class Smarty_Template_Cached {
// check if cache is valid
//
if (!($_template->caching == Smarty::CACHING_LIFETIME_CURRENT || $_template->caching == Smarty::CACHING_LIFETIME_SAVED) || $_template->source->recompiled) {
$handler->populate($this, $_template);
return;
}
while (true) {