continue;
}
$cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
- $curlResult = DI::httpRequest()->fetchFull($url, true, 0, '', $cookiejar);
+ $curlResult = DI::httpRequest()->fetchFull($url, 0, '', $cookiejar);
$attachments[$url] = [
'data' => $curlResult->getBody(),
'guid' => hash("crc32", $url),
function pumpio_reachable($url)
{
- return DI::httpRequest()->get($url, false, ['timeout' => 10])->isSuccess();
+ return DI::httpRequest()->get($url, ['timeout' => 10])->isSuccess();
}
/*
} elseif ($oembed_data->type != "link") {
$body = str_replace($search, "[url=" . $expanded_url . "]" . $expanded_url . "[/url]", $body);
} else {
- $img_str = DI::httpRequest()->fetch($expanded_url, true, 4);
+ $img_str = DI::httpRequest()->fetch($expanded_url, 4);
$tempfile = tempnam(get_temppath(), "cache");
file_put_contents($tempfile, $img_str);
} elseif ($oembed_data->type != 'link') {
$replace = '[url=' . $expanded_url . ']' . $url->display_url . '[/url]';
} else {
- $img_str = DI::httpRequest()->fetch($final_url, true, 4);
+ $img_str = DI::httpRequest()->fetch($final_url, 4);
$tempfile = tempnam(get_temppath(), 'cache');
file_put_contents($tempfile, $img_str);