? cron_info.patch
? cron_info_1.patch
? files
? sites/default/settings.php
? sites/default/themes
Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.85
diff -u -p -r1.85 install.php
--- install.php	31 Oct 2007 16:14:15 -0000	1.85
+++ install.php	31 Oct 2007 17:39:38 -0000
@@ -998,6 +998,10 @@ function install_configure_form_submit($
   // would be required later in the request, so remember it.
   $user->sid = session_id();
 
+  // Run cron for the first time.
+  drupal_cron_run();
+  drupal_set_message(st('Please check the help pages for assistance in <a href="@url">configuring cron jobs</a>.', array('@url' => 'http://drupal.org/cron')));
+
   $form_state['redirect'] = 'finished';
 }
 
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.167
diff -u -p -r1.167 system.install
--- modules/system/system.install	25 Oct 2007 20:41:16 -0000	1.167
+++ modules/system/system.install	31 Oct 2007 17:39:41 -0000
@@ -94,7 +94,21 @@ 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 > variable_get('cron_threshold_warning', 172800)) {
+        // Cron hasn't run for more than 'cron_threshold_warning' seconds.
+        // Default is two days.
+        $requirements['cron']['description'] = $t('Cron has not run recently. Please check the help pages for <a href="@url">configuring cron jobs</a>.', array('@url' => 'http://drupal.org/cron'));
+        $requirements['cron']['severity'] = REQUIREMENT_WARNING;
+        if (time() - $cron_last > variable_get('cron_threshold_error', 1209600)) {
+          // Cron hasn't run for more than 'cron_threshold_error' seconds.
+          // Default is two weeks.
+          $requirements['cron']['severity'] = REQUIREMENT_ERROR;
+        }
+      }
     }
     else {
       $requirements['cron'] = array(
