From 6f0dbc296efa2762df294f95f686114302af98b8 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 18 Apr 2019 10:31:27 -0700 Subject: [PATCH] Cron Status Check - Better hyperlinks * The old link pointed to a frozen wiki page with bad styling * The old link was buried --- CRM/Utils/Check/Component/Env.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index cbc58df44c..4ecc374275 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -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 .= '

' . ts('To enable scheduling support, please set up the cron job.', [ + 1 => $cronLink, + ]) . '

'; $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.') . '
' . - ts("Learn more in the online documentation.", [1 => $docUrl]) - ); $messages[] = $message; } -- 2.25.1