MDL-71844 tool_task: preserve navigation when executing task.

This commit is contained in:
Paul Holden 2021-06-02 22:41:49 +01:00
parent 0d0e66d37c
commit 75e72a2b24

View File

@ -59,10 +59,14 @@ if (!$task) {
}
// Start output.
$PAGE->set_url(new moodle_url('/admin/tool/task/schedule_task.php'));
$PAGE->set_url(new moodle_url('/admin/tool/task/schedule_task.php', ['task' => $taskname]));
$PAGE->set_context($context);
$PAGE->navbar->add(get_string('scheduledtasks', 'tool_task'), new moodle_url('/admin/tool/task/scheduledtasks.php'));
$PAGE->set_heading($SITE->fullname);
$PAGE->set_title($task->get_name());
navigation_node::override_active_url(new moodle_url('/admin/tool/task/scheduledtasks.php'));
$PAGE->navbar->add(s($task->get_name()));
echo $OUTPUT->header();
echo $OUTPUT->heading($task->get_name());