mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix the compiler did fail when using template inheritance and recursive {include} (smarty-developers group)
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
11.01.2014
|
18.01.2014
|
||||||
|
- bugfix the compiler did fail when using template inheritance and recursive {include} (smarty-developers group)
|
||||||
|
|
||||||
|
11.01.2014
|
||||||
- bugfix "* }" (spaces before right delimiter) was interpreted by mistake as comment end tag (Issue 170)
|
- bugfix "* }" (spaces before right delimiter) was interpreted by mistake as comment end tag (Issue 170)
|
||||||
- internals content cache should be clear when updating cache file
|
- internals content cache should be clear when updating cache file
|
||||||
|
|
||||||
|
@@ -166,7 +166,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
|
|||||||
$nocache = false;
|
$nocache = false;
|
||||||
$_smarty_tpl = $compiler->template;
|
$_smarty_tpl = $compiler->template;
|
||||||
eval("\$tpl_name = $include_file;");
|
eval("\$tpl_name = $include_file;");
|
||||||
if (!isset($compiler->smarty->merged_templates_func[$tpl_name][$uid]) || $compiler->inheritance) {
|
if (!isset($compiler->smarty->merged_templates_func[$tpl_name][$uid])) {
|
||||||
$tpl = new $compiler->smarty->template_class ($tpl_name, $compiler->smarty, $compiler->template, $compiler->template->cache_id, $compiler->template->compile_id);
|
$tpl = new $compiler->smarty->template_class ($tpl_name, $compiler->smarty, $compiler->template, $compiler->template->cache_id, $compiler->template->compile_id);
|
||||||
// save unique function name
|
// save unique function name
|
||||||
$compiler->smarty->merged_templates_func[$tpl_name][$uid]['func'] = $tpl->properties['unifunc'] = 'content_' . str_replace('.', '_', uniqid('', true));
|
$compiler->smarty->merged_templates_func[$tpl_name][$uid]['func'] = $tpl->properties['unifunc'] = 'content_' . str_replace('.', '_', uniqid('', true));
|
||||||
|
Reference in New Issue
Block a user