You are here

public function SiteAuditCheckCronEnabled::getResultWarn in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Cron/Enabled.php \SiteAuditCheckCronEnabled::getResultWarn()

Implements \SiteAudit\Check\Abstract\getResultWarn().

Overrides SiteAuditCheckAbstract::getResultWarn

File

Check/Cron/Enabled.php, line 56
Contains \SiteAudit\Check\Cron\Enabled.

Class

SiteAuditCheckCronEnabled
Class SiteAuditCheckCronEnabled.

Code

public function getResultWarn() {
  if ($this->registry['cron_safe_threshold'] > 24 * 60 * 60) {
    return dt('Drupal Cron frequency is set to mare than 24 hours.');
  }
  else {
    return dt("Drupal Cron has not run in the past day even though it's frequency has been set to less than 24 hours.");
  }
}