mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
9c266e59cf
commit
adada10eb6
19 changed files with 25 additions and 25 deletions
|
@ -77,7 +77,7 @@ function geonames_post_hook(App $a, array &$item)
|
|||
|
||||
/* OK, we're allowed to do our stuff. */
|
||||
|
||||
$s = DI::httpRequest()->fetch('http://api.geonames.org/findNearbyPlaceName?lat=' . $coords[0] . '&lng=' . $coords[1] . '&username=' . $geo_account);
|
||||
$s = DI::httpClient()->fetch('http://api.geonames.org/findNearbyPlaceName?lat=' . $coords[0] . '&lng=' . $coords[1] . '&username=' . $geo_account);
|
||||
|
||||
if (!$s) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue