Skip to content

Commit 16c5c93

Browse files
committed
UIExtension: {layout auto} skips finder in referring templates to prevent recursion
1 parent d169312 commit 16c5c93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Bridges/ApplicationLatte/UIExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function createExtendsNode(Tag $tag): ExtendsNode
132132
$auto = $tag->parser->stream->is('auto');
133133
$node = ExtendsNode::create($tag);
134134
if ($auto) {
135-
$node->extends = new AuxiliaryNode(fn() => '$this->global->uiPresenter->findLayoutTemplateFile()');
135+
$node->extends = new AuxiliaryNode(fn() => '($this->referringTemplate ? null : $this->global->uiPresenter->findLayoutTemplateFile())');
136136
}
137137
return $node;
138138
}

0 commit comments

Comments
 (0)