X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHttpClient.php;h=c7989ec626842d935c381ed23a99e1107a0fee46;hb=c77f9b14576dbe8314a82b2e4f19a170d3cc1695;hp=01b7c220ac55469d13e8ba0fc711ed33eba662dc;hpb=f299f7db79fed6f3598c84302966bda087e7cac3;p=civicrm-core.git diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index 01b7c220ac..c7989ec626 100644 --- a/CRM/Utils/HttpClient.php +++ b/CRM/Utils/HttpClient.php @@ -1,27 +1,11 @@ createCurl($remoteFile); if (preg_match('/^https:/', $remoteFile) && !$caConfig->isEnableSSL()) { - CRM_Core_Error::fatal('Cannot install this extension - does not support SSL'); + throw new CRM_Core_Exception('Cannot install this extension - does not support SSL'); } $fp = @fopen($localFile, "w");