- Made some bugfixes regarding blocks and slots
This commit is contained in:
1 parent
18a0fd7fdc
commit
48ecd9f7d9
2 files changed
+8
-6
No files matched your search
@@ -53,7 +53,7 @@ class SectionToken implements ControlStructure {
|
||||
protected function printEndSection($context) : string
|
||||
{
|
||||
$section = array_pop($context->sections);
|
||||
$build = $context->extendFrom ? "\$___class__template->sectionStack && \$___class__template->renderSection({$section['name']});" : "\$___class__template->renderSection({$section['name']});";
|
||||
$build = $context->extendFrom ? "!empty(\$___class__template->sectionStack) && \$___class__template->renderSection({$section['name']});" : "\$___class__template->renderSection({$section['name']});";
|
||||
return "<?php array_pop(\$___class__template->sectionStack); }]; $build?>";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user