mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
- bugfix a nested subblock in an inheritance child template was not replace by
outer level block with same name in same child template https://github.com/smarty-php/smarty/issues/500
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
===== 3.1.34-dev-6 =====
|
||||
30.10.2018
|
||||
- bugfix a nested subblock in an inheritance child template was not replace by
|
||||
outer level block with same name in same child template https://github.com/smarty-php/smarty/issues/500
|
||||
|
||||
29.10.2018
|
||||
- bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed
|
||||
a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501
|
||||
|
@@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
/**
|
||||
* smarty version
|
||||
*/
|
||||
const SMARTY_VERSION = '3.1.34-dev-6';
|
||||
const SMARTY_VERSION = '3.1.34-dev-7';
|
||||
/**
|
||||
* define variable scopes
|
||||
*/
|
||||
|
@@ -150,7 +150,7 @@ class Smarty_Internal_Runtime_Inheritance
|
||||
return;
|
||||
}
|
||||
// make sure we got child block of child template of current block
|
||||
while ($block->child && $block->tplIndex <= $block->child->tplIndex) {
|
||||
while ($block->child && $block->child->child && $block->tplIndex <= $block->child->tplIndex) {
|
||||
$block->child = $block->child->child;
|
||||
}
|
||||
$this->process($tpl, $block);
|
||||
|
Reference in New Issue
Block a user