mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-68946 tool_task: Make clionly string handling more consistent
This commit is contained in:
parent
bbb7dfc62e
commit
329d3a8de5
@ -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', [
|
||||
|
@ -433,6 +433,7 @@ $string['cronremotepassword'] = 'Cron password for remote access';
|
||||
$string['cronwarning'] = 'The <a href="{$a->url}">admin/cron.php script</a> has not been run for {$a->actual} and should run every {$a->expected}.';
|
||||
$string['cronwarningcli'] = 'The <code>admin/cli/cron.php</code> script has not been run for {$a->actual} and should run every {$a->expected}.';
|
||||
$string['cronwarningnever'] = 'The <code>admin/cli/cron.php</code> script has never been run and should run every {$a->expected}.';
|
||||
$string['cronwarningneverweb'] = 'The <a href="{$a->url}">admin/cron.php script</a> script has never been run and should run every {$a->expected}.';
|
||||
$string['ctyperequired'] = 'The ctype PHP extension is now required by Moodle, in order to improve site performance and to offer multilingual compatibility.';
|
||||
$string['curlsecurityallowedport'] = 'cURL allowed ports list';
|
||||
$string['curlsecurityallowedportsyntax'] = 'List of port numbers that cURL can connect to. Valid entries are integer numbers only. Put each entry on a new line. If left empty, then all ports are allowed. If set, in almost all cases, both 443 and 80 should be specified for cURL to connect to standard HTTPS and HTTP ports.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user