From ba6ba0cf8d701f35510126d6fd5cac453d2fe8c5 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Wed, 11 Nov 2009 16:15:47 +0000 Subject: [PATCH] - fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_compile_for.php | 4 ++-- libs/sysplugins/smarty_internal_compile_foreach.php | 4 ++-- libs/sysplugins/smarty_internal_compile_section.php | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/change_log.txt b/change_log.txt index 0df4c5e0..28ffd39b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +11/11/2009 +- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables + 11/10/2009 - fixed preg_qoute on delimiters diff --git a/libs/sysplugins/smarty_internal_compile_for.php b/libs/sysplugins/smarty_internal_compile_for.php index 4f4ef943..1fe3c4d9 100644 --- a/libs/sysplugins/smarty_internal_compile_for.php +++ b/libs/sysplugins/smarty_internal_compile_for.php @@ -71,8 +71,8 @@ class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase { // check and get attributes $_attr = $this->_get_attributes($args); - list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('for')); - $this->_open_tag('forelse',array('forelse', $this->compiler->nocache)); + list($_open_tag, $nocache) = $this->_close_tag(array('for')); + $this->_open_tag('forelse',array('forelse', $nocache)); return ""; } } diff --git a/libs/sysplugins/smarty_internal_compile_foreach.php b/libs/sysplugins/smarty_internal_compile_foreach.php index 6f7df8d4..09801fda 100644 --- a/libs/sysplugins/smarty_internal_compile_foreach.php +++ b/libs/sysplugins/smarty_internal_compile_foreach.php @@ -151,8 +151,8 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase { // check and get attributes $_attr = $this->_get_attributes($args); - list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('foreach')); - $this->_open_tag('foreachelse',array('foreachelse', $this->compiler->nocache)); + list($_open_tag, $nocache) = $this->_close_tag(array('foreach')); + $this->_open_tag('foreachelse',array('foreachelse', $nocache)); return ""; } diff --git a/libs/sysplugins/smarty_internal_compile_section.php b/libs/sysplugins/smarty_internal_compile_section.php index f568cc74..0de506a7 100644 --- a/libs/sysplugins/smarty_internal_compile_section.php +++ b/libs/sysplugins/smarty_internal_compile_section.php @@ -128,8 +128,8 @@ class Smarty_Internal_Compile_Sectionelse extends Smarty_Internal_CompileBase { // check and get attributes $_attr = $this->_get_attributes($args); - list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('section')); - $this->_open_tag('sectionelse',array('sectionelse', $this->compiler->nocache)); + list($_open_tag, $nocache) = $this->_close_tag(array('section')); + $this->_open_tag('sectionelse',array('sectionelse', $nocache)); return ""; }