mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Make "HTTPRequest::fetchUrl" dynamic
This commit is contained in:
parent
fed6e3cde1
commit
40ff1d7fda
7 changed files with 12 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue