Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user