mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- bugfix on variable include filename
This commit is contained in:
@@ -31,8 +31,8 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
|
|||||||
$include_file = $_attr['file'];
|
$include_file = $_attr['file'];
|
||||||
$has_compiled_template = false;
|
$has_compiled_template = false;
|
||||||
if ($compiler->smarty->merge_compiled_includes) {
|
if ($compiler->smarty->merge_compiled_includes) {
|
||||||
// check if compiled code can be merged
|
// check if compiled code can be merged (contains nor variable)
|
||||||
if (strpos($include_file, '$_smarty_tpl') === false) {
|
if (strpos($include_file, '$_') === false) {
|
||||||
eval("\$tmp = $include_file;");
|
eval("\$tmp = $include_file;");
|
||||||
$tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template);
|
$tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template);
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user