- bugfix template inheritance did produce wrong code if subtemplates with {block} was

included several times (from smarty-developers forum)
This commit is contained in:
uwe.tews@googlemail.com
2012-08-15 15:09:12 +00:00
parent b977381e4e
commit 090ba8e7c5
2 changed files with 6 additions and 0 deletions
@@ -215,6 +215,8 @@ abstract class Smarty_Internal_TemplateCompilerBase {
} else {
$code = $template_header . $template->createTemplateCodeFrame($_compiled_code) . $merged_code;
}
// unset content because template inheritance could have replace source with parent code
unset ($template->source->content);
return $code;
}