diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 1cbf084c60ac..4753496c8cc6 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -986,4 +986,18 @@ public function checkMysqlVersion() { return $messages; } + public function checkPHPIntlExists() { + $messages = []; + if (!extension_loaded('intl')) { + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + ts('This system currently does not have the PHP-INTL extension enabled please contact your system administrator about getting the extension enabled'), + ts('Missing PHP Extension: INTL'), + \Psr\Log\LogLevel::WARNING, + 'fa-server' + ); + } + return $messages; + } + }