From 72a04fe699eaa45814266194f50e97e6091795bf Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sat, 17 Oct 2009 13:09:31 +0000 Subject: [PATCH] once again include template with variable name --- libs/sysplugins/internal.compile_include.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/internal.compile_include.php b/libs/sysplugins/internal.compile_include.php index e3c880ce..975d6741 100644 --- a/libs/sysplugins/internal.compile_include.php +++ b/libs/sysplugins/internal.compile_include.php @@ -32,7 +32,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { $has_compiled_template = false; if ($compiler->smarty->merge_compiled_includes) { // check if compiled code can be merged (contains no variable part) - if (substr_count($include_file, '"') == 2 or substr_count($include_file, "'") == 2) { + if ((substr_count($include_file, '"') == 2 or substr_count($include_file, "'") == 2) and substr_count($include_file, '(') == 0) { eval("\$tmp = $include_file;"); $tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template); do {