MDL-79276 core: Auto close streaming elements in shutdown handler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user