From 678b28769d3a97943ef325a1a12367131403141f Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Wed, 30 Nov 2011 16:31:25 +0000 Subject: [PATCH] - bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce an exception (Forum Topic 20531) --- change_log.txt | 4 ++++ libs/sysplugins/smarty_cacheresource.php | 1 + 2 files changed, 5 insertions(+) diff --git a/change_log.txt b/change_log.txt index f43245f9..12a66fcb 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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) diff --git a/libs/sysplugins/smarty_cacheresource.php b/libs/sysplugins/smarty_cacheresource.php index d2be6f62..ca18add5 100644 --- a/libs/sysplugins/smarty_cacheresource.php +++ b/libs/sysplugins/smarty_cacheresource.php @@ -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) {