- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)

This commit is contained in:
uwe.tews@googlemail.com
2010-09-12 17:46:04 +00:00
parent 255c271246
commit 4556f7d370
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
12/09/2010
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)
10/09/2010
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)

View File

@@ -37,7 +37,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
$tmp = null;
eval("\$tmp = $include_file;");
if ($this->compiler->template->template_resource != $tmp) {
$tpl = $compiler->smarty->createTemplate ($tmp, $compiler->template->cache_id, $compiler->template->compile_id, $compiler->template);
$tpl = new $compiler->smarty->template_class ($tmp, $compiler->smarty, $compiler->template, $compiler->template->cache_id, $compiler->template->compile_id);
if ($this->compiler->template->caching) {
// needs code for cached page but no cache file
$tpl->caching = 9999;