- 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

This commit is contained in:
uwetews
2015-11-02 18:06:42 +01:00
parent cc3f69a2a3
commit aa730800bd
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
 ===== 3.1.28-dev===== (xx.xx.2015)
02.11.2015
- 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
01.11.2015
- update config file processing

View File

@@ -118,7 +118,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.28-dev/76';
const SMARTY_VERSION = '3.1.28-dev/77';
/**
* define variable scopes

View File

@@ -97,7 +97,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
} else {
$compiled->includes[$fullResourceName] = 1;
}
$fullResourceName = "'{$fullResourceName}'";
$fullResourceName = '"' . $fullResourceName . '"';
}
}
if (empty($match[5])) {