Cron Status Check - Better hyperlinks
authorTim Otten <totten@civicrm.org>
Thu, 18 Apr 2019 17:31:27 +0000 (10:31 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 18 Apr 2019 17:51:23 +0000 (10:51 -0700)
* The old link pointed to a frozen wiki page with bad styling
* The old link was buried

CRM/Utils/Check/Component/Env.php

index cbc58df44c1c91166aaf7ad0a84d6c1136ad823f..4ecc374275cf072277e5ff2a97b8c3115cc6427b 100644 (file)
@@ -303,6 +303,10 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component {
       );
     }
     else {
+      $cronLink = 'target="_blank" href="' . htmlentities(CRM_Utils_System::docURL2('sysadmin/setup/jobs/', TRUE)) . '""';
+      $msg .= '<p>' . ts('To enable scheduling support, please <a %1>set up the cron job</a>.', [
+        1 => $cronLink,
+      ]) . '</p>';
       $message = new CRM_Utils_Check_Message(
         __FUNCTION__,
         $msg,
@@ -310,11 +314,6 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component {
         ($lastCron > gmdate('U') - 86400) ? \Psr\Log\LogLevel::WARNING : \Psr\Log\LogLevel::ERROR,
         'fa-clock-o'
       );
-      $docUrl = 'target="_blank" href="' . CRM_Utils_System::docURL(['resource' => 'wiki', 'page' => 'Managing Scheduled Jobs', 'URLonly' => TRUE]) . '""';
-      $message->addHelp(
-        ts('Configuring cron on your server is necessary for running scheduled jobs such as sending mail and scheduled reminders.') . '<br />' .
-        ts("Learn more in the <a %1>online documentation</a>.", [1 => $docUrl])
-      );
       $messages[] = $message;
     }