From 4556f7d370b9a9031f1ddcbd833ee8960c39b9dc Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Sun, 12 Sep 2010 17:46:04 +0000 Subject: [PATCH] - bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_compile_include.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 71211f2d..6c08e84f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +12/09/2010 +- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) + 10/09/2010 - bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) diff --git a/libs/sysplugins/smarty_internal_compile_include.php b/libs/sysplugins/smarty_internal_compile_include.php index 4c5d3f01..fa1d6427 100644 --- a/libs/sysplugins/smarty_internal_compile_include.php +++ b/libs/sysplugins/smarty_internal_compile_include.php @@ -37,7 +37,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { $tmp = null; eval("\$tmp = $include_file;"); if ($this->compiler->template->template_resource != $tmp) { - $tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template); + $tpl = new $compiler->smarty->template_class ($tmp, $compiler->smarty, $compiler->template, $compiler->template->cache_id, $compiler->template->compile_id); if ($this->compiler->template->caching) { // needs code for cached page but no cache file $tpl->caching = 9999;