mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-71844 tool_task: preserve navigation when executing task.
This commit is contained in:
parent
0d0e66d37c
commit
75e72a2b24
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user