1
0
Fork 0

Move ACCEPT constants to own "enum" class

This commit is contained in:
Philipp Holzer 2022-04-02 20:26:11 +02:00
commit 73c3b21665
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
35 changed files with 144 additions and 138 deletions

View file

@ -24,7 +24,7 @@ namespace Friendica\Util;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Model\Photo;
use Friendica\Network\HTTPClient\Client\HttpClient;
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
/**
* Image utilities
@ -220,7 +220,7 @@ class Images
}
if (empty($img_str)) {
$img_str = DI::httpClient()->fetch($url, 4, HttpClient::ACCEPT_IMAGE);
$img_str = DI::httpClient()->fetch($url, 4, HttpClientAccept::IMAGE);
}
if (!$img_str) {