There was an error while loading. Please reload this page.
1 parent d169312 commit 16c5c93Copy full SHA for 16c5c93
1 file changed
src/Bridges/ApplicationLatte/UIExtension.php
@@ -132,7 +132,7 @@ public static function createExtendsNode(Tag $tag): ExtendsNode
132
$auto = $tag->parser->stream->is('auto');
133
$node = ExtendsNode::create($tag);
134
if ($auto) {
135
- $node->extends = new AuxiliaryNode(fn() => '$this->global->uiPresenter->findLayoutTemplateFile()');
+ $node->extends = new AuxiliaryNode(fn() => '($this->referringTemplate ? null : $this->global->uiPresenter->findLayoutTemplateFile())');
136
}
137
return $node;
138
0 commit comments