mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Merge pull request #1006 from MrPetovan/task/curl_DI
Introduce "HTTPRequest" class
This commit is contained in:
commit
2c69a9c359
18 changed files with 34 additions and 49 deletions
|
@ -69,7 +69,6 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
function jappixmini_install()
|
||||
{
|
||||
|
@ -658,7 +657,7 @@ function jappixmini_cron(App $a, $d)
|
|||
|
||||
try {
|
||||
// send request
|
||||
$answer_json = Network::fetchUrl($url);
|
||||
$answer_json = DI::httpRequest()->fetch($url);
|
||||
|
||||
// parse answer
|
||||
$answer = json_decode($answer_json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue