X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHttpClient.php;h=c7989ec626842d935c381ed23a99e1107a0fee46;hb=c77f9b14576dbe8314a82b2e4f19a170d3cc1695;hp=776adafcaff3d80f3ccb6b7eb9de3fef212566f5;hpb=be59734a3b9bede8946b25118ccf65846c169cf0;p=civicrm-core.git diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index 776adafcaf..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");