}
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', [
$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.';