fix: proper nesting of $smarty->_cache_including flag in cascaded

cached/not-cached/fetched/inserted/foo-templates
This commit is contained in:
messju
2003-08-08 20:41:37 +00:00
parent 04d08faa2a
commit 10b23e37a2

View File

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