From cfea0856296bacbe5e2f598e10b59411060f2ffd Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Tue, 19 Jan 2010 17:01:10 +0000 Subject: [PATCH] - bugfix on plugins if same plugin was called from a nocache section first and later from a cached section --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_templatecompilerbase.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index e2752767..83466f5f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +01/19/2010 +- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section + 01/17/2010 - bugfix on $smarty.const... in double quoted strings diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index 68e3efd9..e6e169ad 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -277,7 +277,7 @@ class Smarty_Internal_TemplateCompilerBase { } } else { if (isset($this->template->required_plugins['cache'][$plugin_name])) { - $this->template->required_plugins['compiled'][$plugin_name] = $this->template->required_plugins['compiled'][$plugin_name]; + $this->template->required_plugins['compiled'][$plugin_name] = $this->template->required_plugins['cache'][$plugin_name]; } } if ($type == 'modifier') {