$help=$t('Please check the help pages for <a href="@url">configuring cron jobs</a> or you can <a href="@cron">run cron manually</a>.',array('@url'=>'http://drupal.org/cron','@cron'=>url('admin/reports/status/run-cron')));
$help = $t('Please check the help pages for <a href="@url">configuring cron jobs</a>.', array('@url' => 'http://drupal.org/cron'));
// Determine when cron last ran. If never, use the install time to
// determine the warning or error status.
...
...
@@ -112,7 +112,7 @@ function system_requirements($phase) {
if (time() - $cron_last > $threshold_error) {
$severity = REQUIREMENT_ERROR;
}
elseif(time()-$cron_last>$threshold_warning){
else if ($never_run || (time() - $cron_last > $threshold_warning)) {
$severity = REQUIREMENT_WARNING;
}
...
...
@@ -120,7 +120,7 @@ function system_requirements($phase) {
// administration page, instead of an error, we display a helpful reminder
drupal_set_message($t('Cron has not run.').' '.$help);
drupal_set_message($t('Cron has not run. Please visit the <a href="@status">status report</a> for more information.', array('@status' => url('admin/reports/status'))));
}
// Set summary and description based on values determined above.
...
...
@@ -140,7 +140,7 @@ function system_requirements($phase) {