Skip to content

Commit c07b809

Browse files
committed
Issue with interpreting [[template]] logic as "flat", it is impossible to such interpretation with local information. Basically, the same as in #1085.
1 parent de4b0a1 commit c07b809

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

stack/cas/castext2/blocks/template.block.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ public function compile($format, $options): ?MP_Node {
8585

8686
// phpcs:ignore moodle.Commenting.MissingDocblock.Function
8787
public function is_flat(): bool {
88-
if (count($this->children) === 0 && !array_key_exists('mode', $this->params)) {
89-
// When declaring a template the result will always be an empty string.
90-
return true;
91-
}
92-
// We cannot know if the overriding template is flat when using the template.
88+
// The only cases where this could be flat are such that we cannot identify them here.
9389
return false;
9490
}
9591

0 commit comments

Comments
 (0)