MDL-68946 tool_task: Make clionly string handling more consistent

This commit is contained in:
Mathew May
2020-06-08 17:11:57 +08:00
parent bbb7dfc62e
commit 329d3a8de5
2 changed files with 12 additions and 3 deletions
+11 -3
View File
@@ -81,9 +81,17 @@ class cronrunning extends check {
}
if (empty($lastcron)) {
$summary = get_string('cronwarningnever', 'admin', [
'expected' => $formatexpected,
]);
if (empty($CFG->cronclionly)) {
$url = new \moodle_url('/admin/cron.php');
$summary = get_string('cronwarningneverweb', 'admin', [
'url' => $url->out(),
'expected' => $formatexpected,
]);
} else {
$summary = get_string('cronwarningnever', 'admin', [
'expected' => $formatexpected,
]);
}
} else if (empty($CFG->cronclionly)) {
$url = new \moodle_url('/admin/cron.php');
$summary = get_string('cronwarning', 'admin', [