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
|
@ -12,6 +12,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
function openstreetmap_install()
|
||||
{
|
||||
|
@ -115,7 +116,7 @@ function openstreetmap_generate_named_map(&$a, &$b)
|
|||
$nomserver = 'http://nominatim.openstreetmap.org/search.php';
|
||||
$args = '?q=' . urlencode($b['location']) . '&format=json';
|
||||
|
||||
$x = z_fetch_url($nomserver . $args);
|
||||
$x = Network::zFetchURL($nomserver . $args);
|
||||
if($x['success']) {
|
||||
$j = json_decode($x['body'],true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue