mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
This commit is contained in:
parent
2889d59b83
commit
5344efef71
43 changed files with 528 additions and 485 deletions
|
@ -24,6 +24,7 @@ namespace Friendica\Util;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
|
||||
/**
|
||||
* Image utilities
|
||||
|
@ -184,7 +185,7 @@ class Images
|
|||
return $data;
|
||||
}
|
||||
|
||||
$img_str = Network::fetchUrl($url, true, 4);
|
||||
$img_str = HTTPRequest::fetchUrl($url, true, 4);
|
||||
|
||||
if (!$img_str) {
|
||||
return [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue