- bugfix using {block append/prepend} on same block in multiple levels of inheritance templates could fail (forum topic 25827)

This commit is contained in:
uwetews
2015-12-18 00:34:58 +01:00
parent 9a8bcb93b1
commit 05c069d889

View File

@@ -215,7 +215,11 @@ class Smarty_Internal_Runtime_Inheritance
$this->processBlock($tpl, 3, $name, null, $appendStack);
}
// call block of current stack level
if (isset($block[6])) {
$block[6]($tpl, $callStack);
} else {
$block[0]($tpl, $callStack);
}
// {block prepend} ?
if (isset($block[ 'prepend' ])) {
$prependStack = $callStack;