mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-21695 Cron warning help fixed
This commit is contained in:
parent
6855dc3088
commit
9047d80e86
@ -363,8 +363,7 @@ if (defined('WARN_DISPLAY_ERRORS_ENABLED')) {
|
||||
// If no recently cron run
|
||||
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
|
||||
if (time() - $lastcron > 3600 * 24) {
|
||||
$strinstallation = get_string('installation', 'install');
|
||||
$helpbutton = $OUTPUT->old_help_icon('install', $strinstallation);
|
||||
$helpbutton = $OUTPUT->help_icon('cron', 'admin');
|
||||
echo $OUTPUT->box(get_string('cronwarning', 'admin').' '.$helpbutton, 'generalbox adminwarning');
|
||||
}
|
||||
|
||||
|
@ -376,13 +376,14 @@ $string['courserequestspending'] = 'Pending course requests';
|
||||
$string['courses'] = 'Courses';
|
||||
$string['coursesperpage'] = 'Courses per page';
|
||||
$string['creatornewroleid'] = 'Creators\' role in new courses';
|
||||
$string['cron'] = 'Cron';
|
||||
$string['cron_help'] = 'The cron.php maintenance script assists some of Moodle\'s modules to perform tasks on a scheduled basis, such as mailing out copies of new forum posts. A mechanism is required to run the script regularly e.g. every 5 minutes.';
|
||||
$string['cron_link'] = 'admin/cron';
|
||||
$string['cronclionly'] = 'Cron execution via command line only';
|
||||
$string['cronerrorclionly'] = 'Sorry, internet access to this page has been disabled by the administrator.';
|
||||
$string['cronerrorpassword'] = 'Sorry, you have not provided a valid password to access this page';
|
||||
$string['cronremotepassword'] = 'Cron password for remote access';
|
||||
$string['cronwarning'] = 'The <a href="cron.php">cron.php maintenance script</a> has not been run for at least 24 hours.';
|
||||
$string['cronwarning_help'] = 'The cron.php maintenance script assists some of Moodle\'s modules to perform tasks on a scheduled basis, such as mailing out copies of new forum posts. A mechanism is required to run the script regularly e.g. every 10 minutes.';
|
||||
$string['cronwarning_link'] = 'admin/cron';
|
||||
$string['csvdelimiter'] = 'CSV delimiter';
|
||||
$string['ctyperecommended'] = 'Installing the optional ctype PHP extension is highly recommended in order to improve site performance, particularly if your site is supporting non-latin languages.';
|
||||
$string['ctyperequired'] = 'The ctype PHP extension is now required by Moodle, in order to improve site performance and to offer multilingual compatibility.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user