Skip to content

Commit

Permalink
Merge pull request civicrm#17668 from seamuslee001/intl_check
Browse files Browse the repository at this point in the history
dev/translation#48 Add check for PHP-Intl Extension
  • Loading branch information
eileenmcnaughton authored Jun 21, 2020
2 parents 484e235 + d76cb10 commit 27a4777
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

0 comments on commit 27a4777

Please sign in to comment.