Skip to content
Snippets Groups Projects
Commit 7c0bdab0 authored by TamaraGunkel's avatar TamaraGunkel
Browse files

fixed output before redirecting

parent 0c0ddc35
Branches
Tags
No related merge requests found
...@@ -45,10 +45,6 @@ $courseid = optional_param('courseid', null, PARAM_INT); ...@@ -45,10 +45,6 @@ $courseid = optional_param('courseid', null, PARAM_INT);
$PAGE->set_title(get_string('viewheading', 'tool_cleanupcourses')); $PAGE->set_title(get_string('viewheading', 'tool_cleanupcourses'));
$PAGE->set_heading(get_string('viewheading', 'tool_cleanupcourses')); $PAGE->set_heading(get_string('viewheading', 'tool_cleanupcourses'));
$renderer = $PAGE->get_renderer('tool_cleanupcourses');
echo $renderer->header();
$controller = new \tool_cleanupcourses\view_controller(); $controller = new \tool_cleanupcourses\view_controller();
if ($action !== null && $processid !== null && $stepid !== null) { if ($action !== null && $processid !== null && $stepid !== null) {
...@@ -61,6 +57,10 @@ if ($action !== null && $processid !== null && $stepid !== null) { ...@@ -61,6 +57,10 @@ if ($action !== null && $processid !== null && $stepid !== null) {
exit; exit;
} }
$renderer = $PAGE->get_renderer('tool_cleanupcourses');
echo $renderer->header();
$controller->handle_view($renderer); $controller->handle_view($renderer);
echo $renderer->footer(); echo $renderer->footer();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment