mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
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:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== 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
|
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)
|
- bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343)
|
||||||
|
|
||||||
|
@@ -376,6 +376,13 @@ class Smarty_Internal_Compile_Private_Child_Block extends Smarty_Internal_Compil
|
|||||||
// check and get attributes
|
// check and get attributes
|
||||||
$_attr = $this->getAttributes($compiler, $args);
|
$_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
|
// must merge includes
|
||||||
if ($_attr['nocache'] == true) {
|
if ($_attr['nocache'] == true) {
|
||||||
$compiler->tag_nocache = true;
|
$compiler->tag_nocache = true;
|
||||||
|
Reference in New Issue
Block a user