- bugfix on {insert}

This commit is contained in:
Uwe.Tews
2009-10-07 15:52:57 +00:00
parent e62d6baa2a
commit 6869fa9a49

View File

@@ -33,7 +33,8 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
if (true) { if (true) {
// check if compiled code can be merged // check if compiled code can be merged
if (strpos($include_file, '$_smarty_tpl') === false) { if (strpos($include_file, '$_smarty_tpl') === false) {
$tpl = $compiler->smarty->createTemplate (trim($include_file, "'\""), $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template); eval("\$tmp = $include_file;");
$tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template);
do { do {
$must_compile = false; $must_compile = false;
$prop = array(); $prop = array();