MDL-79276 core: Auto close streaming elements in shutdown handler

This commit is contained in:
Brendan Heywood
2023-10-02 21:11:44 +10:00
parent 21b5ad1555
commit 08780b449f
2 changed files with 33 additions and 12 deletions
+3
View File
@@ -240,6 +240,9 @@ class core_shutdown_manager {
}
}
// Close the current streaming element if any.
echo $OUTPUT->close_element_for_append();
// Print any closing buffered tags.
if (!empty($CFG->closingtags)) {
echo $CFG->closingtags;