Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
9c266e59cf
commit
adada10eb6
19 changed files with 25 additions and 25 deletions
|
@ -43,7 +43,7 @@ function nominatim_resolve_item(&$item)
|
|||
return;
|
||||
}
|
||||
|
||||
$s = DI::httpRequest()->fetch('https://nominatim.openstreetmap.org/reverse?lat=' . $coords[0] . '&lon=' . $coords[1] . '&format=json&addressdetails=0&accept-language=' . $language);
|
||||
$s = DI::httpClient()->fetch('https://nominatim.openstreetmap.org/reverse?lat=' . $coords[0] . '&lon=' . $coords[1] . '&format=json&addressdetails=0&accept-language=' . $language);
|
||||
if (empty($s)) {
|
||||
Logger::info('API could not be queried');
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue