08.03.2014

- bugfix relative file path {include} within {block} of child templates did throw exception on first call (Issue 177)
This commit is contained in:
Uwe.Tews@googlemail.com
2014-03-08 23:03:08 +00:00
parent f06013927c
commit af13907219
2 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
08.03.2014
- bugfix relative file path {include} within {block} of child templates did throw exception on first call (Issue 177)
17.02.2014
- bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343)

View File

@@ -376,6 +376,13 @@ class Smarty_Internal_Compile_Private_Child_Block extends Smarty_Internal_Compil
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
// update template with original template resource of {block}
$compiler->template->template_resource = realpath(trim($_attr['file'], "'"));
// source object
unset ($compiler->template->source);
$exists = $compiler->template->source->exists;
// must merge includes
if ($_attr['nocache'] == true) {
$compiler->tag_nocache = true;