From e8fde303480cd1ef814edfffd05374dcdfef0cb0 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 4 Jul 2020 19:59:57 -0400 Subject: [PATCH] remove resource url check --- CRM/Utils/Check/Component/Env.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 4f8af8ad1a..5a34553f3c 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -846,36 +846,6 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { return $messages; } - /** - * Check that the resource URL points to the correct location. - * @return array - */ - public function checkResourceUrl() { - $messages = []; - // Skip when run during unit tests, you can't check without a CMS. - if (CRM_Core_Config::singleton()->userFramework == 'UnitTests') { - return $messages; - } - // CRM-21629 Set User Agent to avoid being blocked by filters - stream_context_set_default([ - 'http' => ['user_agent' => 'CiviCRM'], - ]); - - // Does arrow.png exist where we expect it? - $arrowUrl = CRM_Core_Config::singleton()->userFrameworkResourceURL . 'packages/jquery/css/images/arrow.png'; - if ($this->fileExists($arrowUrl) === FALSE) { - $messages[] = new CRM_Utils_Check_Message( - __FUNCTION__, - ts('The Resource URL is not set correctly. Please set the CiviCRM Resource URL.', - [1 => CRM_Utils_System::url('civicrm/admin/setting/url', 'reset=1')]), - ts('Incorrect Resource URL'), - \Psr\Log\LogLevel::ERROR, - 'fa-server' - ); - } - return $messages; - } - /** * Check for utf8mb4 support by MySQL. * -- 2.25.1