MDL-73734 tool_generator: Use streaming output api
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user