<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
* @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;