MDL-67211 Tasks: Add cron_enabled setting.

Co-authored-by: Sam Marshall <[email protected]>
This commit is contained in:
Mikhail Golenkov
2020-08-25 17:08:57 +10:00
co-authored by Sam Marshall
parent 45875f6f7b
commit d7342dc239
12 changed files with 193 additions and 9 deletions
+3
View File
@@ -95,6 +95,9 @@ if ($mform && ($mform->is_cancelled() || !empty($CFG->preventscheduledtaskchange
} else {
echo $OUTPUT->header();
if (!get_config('core', 'cron_enabled')) {
echo $renderer->cron_disabled();
}
$tasks = core\task\manager::get_all_scheduled_tasks();
echo $renderer->scheduled_tasks_table($tasks, $lastchanged);
echo $OUTPUT->footer();