mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- improvement convert template inheritance into runtime processing
- bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68
This commit is contained in:
@@ -192,20 +192,7 @@ class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_Com
|
||||
*/
|
||||
public function matchBlockSource(Smarty_Internal_TemplateCompilerBase $compiler)
|
||||
{
|
||||
foreach ($compiler->template->block_data as $b) {
|
||||
if (isset($b['source'])) {
|
||||
$this->matchProperty($b['source']);
|
||||
}
|
||||
}
|
||||
if (class_exists('Smarty_Internal_Compile_Block', false)) {
|
||||
foreach (Smarty_Internal_Compile_Block::$block_data as $b) {
|
||||
if (isset($b['source'])) {
|
||||
$this->matchProperty($b['source']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->matchProperty($compiler->parser->lex->data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user