Skip to content

Commit

Permalink
- bugfix {include} with variable file name like {include file="foo_`$…
Browse files Browse the repository at this point in the history
…bar`.tpl"} did fail in 3.1.28-dev #102
  • Loading branch information
uwetews committed Nov 2, 2015
1 parent cc3f69a commit aa73080
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/sysplugins/smarty_internal_compile_include.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function compile($args, Smarty_Internal_SmartyTemplateCompiler $compiler,
} else {
$compiled->includes[$fullResourceName] = 1;
}
$fullResourceName = "'{$fullResourceName}'";
$fullResourceName = '"' . $fullResourceName . '"';
}
}
if (empty($match[5])) {
Expand Down

0 comments on commit aa73080

Please sign in to comment.