? cron_info.patch ? files ? patch_119.txt ? sites/default/settings.php ? sites/default/themes Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.150 diff -u -p -r1.150 system.install --- modules/system/system.install 6 Sep 2007 13:13:08 -0000 1.150 +++ modules/system/system.install 7 Sep 2007 20:58:52 -0000 @@ -94,7 +94,19 @@ function system_requirements($phase) { $cron_last = variable_get('cron_last', NULL); if (is_numeric($cron_last)) { - $requirements['cron']['value'] = $t('Last run !time ago', array('!time' => format_interval(time() - $cron_last))); + $requirements['cron'] = array( + 'value' => $t('Last run !time ago', array('!time' => format_interval(time() - $cron_last))), + ); + + if (time() - $cron_last > 172800) { + // Cron hasn't run for more than two days. + $requirements['cron']['description'] = $t('Cron has not run recently. Please check the help pages for configuring cron jobs.', array('@url' => 'http://drupal.org/cron')); + $requirements['cron']['severity'] = REQUIREMENT_WARNING; + if (time() - $cron_last > 1209600) { + // Cron hasn't run for more than two weeks. + $requirements['cron']['severity'] = REQUIREMENT_ERROR; + } + } } else { $requirements['cron'] = array(