mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Network was moved to src
update all function calls to use class, insert use statements and remove require_once statements
This commit is contained in:
parent
e09e16fd56
commit
ca3c45101e
19 changed files with 76 additions and 71 deletions
|
@ -16,6 +16,7 @@ use Friendica\Model\Group;
|
|||
use Friendica\Model\User;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Queue;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require 'addon/pumpio/oauth/http.php';
|
||||
require 'addon/pumpio/oauth/oauth_client.php';
|
||||
|
@ -1698,7 +1699,7 @@ function pumpio_fetchallcomments(&$a, $uid, $id) {
|
|||
|
||||
|
||||
function pumpio_reachable($url) {
|
||||
$data = z_fetch_url($url, false, $redirects, ['timeout'=>10]);
|
||||
$data = Network::zFetchURL($url, false, $redirects, ['timeout'=>10]);
|
||||
return(intval($data['return_code']) != 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue