From 5ca1cd485f98af16acc3792842ba259b5ccaf885 Mon Sep 17 00:00:00 2001 From: uwetews Date: Mon, 2 Nov 2015 23:04:52 +0100 Subject: [PATCH] - bugfix {include} with variable file name like {include file="foo_`$bar`.tpl"} did fail in 3.1.28-dev https://github.com/smarty-php/smarty/issues/102 --- libs/sysplugins/smarty_internal_compile_include.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_compile_include.php b/libs/sysplugins/smarty_internal_compile_include.php index 90343f09..09fa11d6 100644 --- a/libs/sysplugins/smarty_internal_compile_include.php +++ b/libs/sysplugins/smarty_internal_compile_include.php @@ -321,7 +321,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase $compiler->smarty->allow_ambiguous_resources = true; /* @var Smarty_Internal_Template $tpl */ $tpl = - new $compiler->smarty->template_class (trim($fullResourceName, "'"), $compiler->smarty, $compiler->template, + new $compiler->smarty->template_class (trim($fullResourceName, '"\''), $compiler->smarty, $compiler->template, $compiler->template->cache_id, $c_id, $_caching); if (!($tpl->source->handler->uncompiled) && $tpl->source->exists) { $compiler->parent_compiler->mergedSubTemplatesData[$hashResourceName][$t_hash]['uid'] = $tpl->source->uid;