From 73fe38c4883be7e39031503d07942f5e6c6bf528 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Mon, 20 Apr 2009 14:08:02 +0000 Subject: [PATCH] - fixed error in {include} tag with variable file attribute --- change_log.txt | 4 ++++ libs/sysplugins/internal.compile_include.php | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/change_log.txt b/change_log.txt index c7c9a0b5..c69d4269 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,7 @@ + +04/20/2009 +- fixed error in {include} tag with variable file attribute + 04/18/2009 - added stream resources ($smarty->display('mystream://mytemplate')) - added stream variables {$mystream:myvar} diff --git a/libs/sysplugins/internal.compile_include.php b/libs/sysplugins/internal.compile_include.php index 95654244..090f1940 100644 --- a/libs/sysplugins/internal.compile_include.php +++ b/libs/sysplugins/internal.compile_include.php @@ -66,12 +66,11 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { } } - if ($this->compiler->tag_nocache == false) { +// if ($this->compiler->tag_nocache == false) { // save file dependency - $_template = new Smarty_Template (trim($include_file,'\'')); - $compiler->template->file_dependency['file_dependency'][] = array($_template->getTemplateFilepath(), $_template->getTemplateTimestamp()); - unset ($_template); - } +// $compiler->template->file_dependency['file_dependency'][] = array($_template->getTemplateFilepath(), $_template->getTemplateTimestamp()); +// unset ($_template); +// } // create template object $_output = "cache_id, \$_smarty_tpl->compile_id);"; // delete {include} standard attributes