MDL-73734 tool_generator: Use streaming output api

This commit is contained in:
Brendan Heywood
2023-08-28 22:48:59 +10:00
parent a6055feebf
commit 072a15ced3
+9 -2
View File
@@ -49,6 +49,15 @@ if (!debugging('', DEBUG_DEVELOPER)) {
exit;
}
// Finish page.
echo $OUTPUT->footer();
echo $OUTPUT->select_element_for_append();
// Preemptively reset the navcache before closing, so it remains the same on shutdown.
navigation_cache::destroy_volatile_caches();
\core\session\manager::write_close();
// Set up the form.
$mform = new tool_generator_make_course_form('maketestcourse.php');
if ($data = $mform->get_data()) {
@@ -75,5 +84,3 @@ if ($data = $mform->get_data()) {
$mform->display();
}
// Finish page.
echo $OUTPUT->footer();