mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Make "HTTPRequest::fetchUrl" dynamic
This commit is contained in:
parent
3b4cf87c95
commit
1aa07f87a4
20 changed files with 26 additions and 46 deletions
|
@ -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 [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue