- Cleaned up the cron status message.

4.7.x
Dries Buytaert 2006-01-05 09:42:09 +00:00
parent 45439f71d0
commit e334ca1b72
2 changed files with 2 additions and 6 deletions

View File

@ -497,15 +497,13 @@ function system_cron_settings() {
$cron_last = variable_get('cron_last', NULL);
if (is_numeric($cron_last)) {
$title = t('Cron properly configured');
$status = t('Cron is running. The last cron job ran %time ago.', array('%time' => format_interval(time() - $cron_last)));
}
else {
$title = t('Cron not configured');
$status = t('Cron has not run. It appears cron jobs have not been setup on your system. Please check the help pages for <a href="%url">configuring cron jobs</a>.', array('%url' => 'http://drupal.org/cron'));
}
$form['settings'] = array('#type' => 'item', '#title' => $title, '#value' => $status);
$form['settings'] = array('#type' => 'item', '#value' => $status);
return $form;
}

View File

@ -497,15 +497,13 @@ function system_cron_settings() {
$cron_last = variable_get('cron_last', NULL);
if (is_numeric($cron_last)) {
$title = t('Cron properly configured');
$status = t('Cron is running. The last cron job ran %time ago.', array('%time' => format_interval(time() - $cron_last)));
}
else {
$title = t('Cron not configured');
$status = t('Cron has not run. It appears cron jobs have not been setup on your system. Please check the help pages for <a href="%url">configuring cron jobs</a>.', array('%url' => 'http://drupal.org/cron'));
}
$form['settings'] = array('#type' => 'item', '#title' => $title, '#value' => $status);
$form['settings'] = array('#type' => 'item', '#value' => $status);
return $form;
}