- Made some bugfixes regarding blocks and slots

This commit is contained in:
mcndave committed 2022-06-03 15:30:16 +00:00
1 parent 18a0fd7fdc
commit 48ecd9f7d9
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -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?>";
}
}