From 8b414e3b8aca7b6dd69f0409fb2238fe949657c0 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Mon, 21 Nov 2011 00:37:33 +0000 Subject: [PATCH] - bugfix cache file could include unneeded modifier plugins under certain condition --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_templatecompilerbase.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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;