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
|
@ -9,6 +9,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
function geocoordinates_install()
|
||||
{
|
||||
|
@ -50,7 +51,7 @@ function geocoordinates_resolve_item(&$item)
|
|||
return;
|
||||
}
|
||||
|
||||
$s = fetch_url("https://api.opencagedata.com/geocode/v1/json?q=".$coords[0].",".$coords[1]."&key=".$key."&language=".$language);
|
||||
$s = Network::fetchURL("https://api.opencagedata.com/geocode/v1/json?q=".$coords[0].",".$coords[1]."&key=".$key."&language=".$language);
|
||||
|
||||
if (!$s) {
|
||||
logger("API could not be queried", LOGGER_DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue