From 10b23e37a25f172e9bbd6107fe7a76bdd7837520 Mon Sep 17 00:00:00 2001 From: messju Date: Fri, 8 Aug 2003 20:41:37 +0000 Subject: [PATCH] fix: proper nesting of $smarty->_cache_including flag in cascaded cached/not-cached/fetched/inserted/foo-templates --- libs/Smarty.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 54e8c521..229969ec 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1310,6 +1310,8 @@ class Smarty // if we just need to display the results, don't perform output // buffering - for speed + $_cache_including = $this->_cache_including; + $this->_cache_including = false; if ($display && !$this->caching && count($this->_plugins['outputfilter']) == 0) { if ($this->_is_compiled($resource_name, $_smarty_compile_path) || $this->_compile_resource($resource_name, $_smarty_compile_path)) @@ -1350,6 +1352,7 @@ class Smarty // restore initial cache_info $this->_cache_info = array_pop($_cache_info); } + $this->_cache_including = $_cache_including; if ($display) { if (isset($_smarty_results)) { echo $_smarty_results; }