summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruwe.tews@googlemail.com <uwe.tews@googlemail.com>2011-10-04 18:58:17 +0000
committeruwe.tews@googlemail.com <uwe.tews@googlemail.com>2011-10-04 18:58:17 +0000
commit8bab7fe5224f737b6ca4e6d3a4eef48209de97c7 (patch)
tree3999973d5f7759fe0e5aaec0f311601275f051c8
parenteb9714cf0eba534ee005eee44d6fd10cd915ad84 (diff)
downloadsmarty-8bab7fe5224f737b6ca4e6d3a4eef48209de97c7.tar.gz
smarty-8bab7fe5224f737b6ca4e6d3a4eef48209de97c7.tar.bz2
smarty-8bab7fe5224f737b6ca4e6d3a4eef48209de97c7.zip
- bugfix has_nocache_code flag was not reset before compilation
-rw-r--r--change_log.txt1
-rw-r--r--libs/sysplugins/smarty_internal_templatecompilerbase.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/change_log.txt b/change_log.txt
index e6a47e41..1a58b67e 100644
--- a/change_log.txt
+++ b/change_log.txt
@@ -4,6 +4,7 @@
- bugfix of problem introduced with r4342 on math plugin
- bugfix output filter should not run on individually cached subtemplates
- add unloadFilter() method
+- bugfix has_nocache_code flag was not reset before compilation
===== Smarty-3.1.2 =====
03.10.2011
diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php
index ae3822cf..cde968d0 100644
--- a/libs/sysplugins/smarty_internal_templatecompilerbase.php
+++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php
@@ -139,6 +139,8 @@ abstract class Smarty_Internal_TemplateCompilerBase {
$this->tag_nocache = false;
// save template object in compiler class
$this->template = $template;
+ // reset has noche code flag
+ $this->template->has_nocache_code = false;
$this->smarty->_current_file = $saved_filepath = $this->template->source->filepath;
// template header code
$template_header = '';