Make "HTTPRequest::fetchUrl" dynamic

This commit is contained in:
nupplaPhil 2020-03-04 22:20:28 +01:00 committed by Hypolite Petovan
parent 3b4cf87c95
commit 1aa07f87a4
20 changed files with 26 additions and 46 deletions

View file

@ -24,7 +24,6 @@ namespace Friendica\Util;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Network\HTTPRequest;
/**
* Image utilities
@ -185,7 +184,7 @@ class Images
return $data;
}
$img_str = HTTPRequest::fetchUrl($url, true, 4);
$img_str = DI::httpRequest()->fetchUrl($url, true, 4);
if (!$img_str) {
return [];