- bugfix disable of caching after isCached() call did not work (Forum Topic 20131)

This commit is contained in:
uwe.tews@googlemail.com
2011-10-13 11:59:02 +00:00
parent 3b006ae5a1
commit 806c51fdcf
2 changed files with 5 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
===== trunk =====
13.10.2011
- add caching for config files in Smarty_Resource
- bugfix disable of caching after isCached() call did not work (Forum Topic 20131)
11.10.2011
- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120)

View File

@@ -45,6 +45,10 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data {
$_template = ($template instanceof $this->template_class)
? $template
: $this->smarty->createTemplate($template, $cache_id, $compile_id, $parent, false);
// if called by Smarty object make sure we use current caching status
if ($this instanceof Smarty) {
$_template->caching = $this->caching;
}
// merge all variable scopes into template
if ($merge_tpl_vars) {
// save local variables