Make "HTTPRequest::fetchUrl" dynamic

This commit is contained in:
nupplaPhil 2020-03-04 22:20:27 +01:00 committed by Hypolite Petovan
parent fed6e3cde1
commit 40ff1d7fda
7 changed files with 12 additions and 19 deletions

View file

@ -69,7 +69,6 @@ use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\User;
use Friendica\Network\HTTPRequest;
function jappixmini_install()
{
@ -660,7 +659,7 @@ function jappixmini_cron(App $a, $d)
try {
// send request
$answer_json = HTTPRequest::fetchUrl($url);
$answer_json = DI::httpRequest()->fetchUrl($url);
// parse answer
$answer = json_decode($answer_json);