mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- 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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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])) {
|
||||
|
Reference in New Issue
Block a user