continue;
}
$cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
- $curlResult = HTTPRequest::fetchUrlFull($url, true, 0, '', $cookiejar);
+ $curlResult = DI::httpRequest()->fetchUrlFull($url, true, 0, '', $cookiejar);
$attachments[$url] = [
'data' => $curlResult->getBody(),
'guid' => hash("crc32", $url),
$api_url = $api_base_url . '/api/v1/custom_emojis';
- $fetchResult = HTTPRequest::fetchUrlFull($api_url);
+ $fetchResult = DI::httpRequest()->fetchUrlFull($api_url);
if ($fetchResult->isSuccess()) {
$emojis_array = json_decode($fetchResult->getBody(), true);