CRM-14396 - CRM_Core_Payment::handlePaymentMethod - Don't leak $paymentClass
[civicrm-core.git] / CRM / Extension / Downloader.php
index 598e062bf3bd63e902e709be606c942649f262b5..3c40f0bc30af6ed2218646ec15f3dafbdba338da 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -129,7 +129,7 @@ class CRM_Extension_Downloader {
    * @return boolean Whether the download was successful.
    */
   public function fetch($remoteFile, $localFile) {
-    $result = CRM_Utils_HttpClient::fetch($remoteFile, $localFile);
+    $result = CRM_Utils_HttpClient::singleton()->fetch($remoteFile, $localFile);
     switch ($result) {
       case CRM_Utils_HttpClient::STATUS_OK:
         return TRUE;