diff --git a/change_log.txt b/change_log.txt index 21d9c2c5..94d612c1 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +21.11.2011 +- bugfix cache file could include unneeded modifier plugins under certain condition + 18.11.2011 - bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index cde968d0..0f218384 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -140,7 +140,7 @@ abstract class Smarty_Internal_TemplateCompilerBase { // save template object in compiler class $this->template = $template; // reset has noche code flag - $this->template->has_nocache_code = false; + $this->template->has_nocache_code = false; $this->smarty->_current_file = $saved_filepath = $this->template->source->filepath; // template header code $template_header = ''; @@ -569,6 +569,7 @@ abstract class Smarty_Internal_TemplateCompilerBase { } else { $_output = $content; } + $this->modifier_plugins = array(); $this->suppressNocacheProcessing = false; $this->tag_nocache = false; return $_output;