mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
This commit is contained in:
parent
31bd1a1ba0
commit
9640142a72
18 changed files with 50 additions and 45 deletions
|
@ -69,7 +69,7 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
|
||||
function jappixmini_install()
|
||||
{
|
||||
|
@ -660,7 +660,7 @@ function jappixmini_cron(App $a, $d)
|
|||
|
||||
try {
|
||||
// send request
|
||||
$answer_json = Network::fetchUrl($url);
|
||||
$answer_json = HTTPRequest::fetchUrl($url);
|
||||
|
||||
// parse answer
|
||||
$answer = json_decode($answer_json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue