Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
9c266e59cf
commit
adada10eb6
19 changed files with 25 additions and 25 deletions
|
@ -45,7 +45,7 @@ function geocoordinates_resolve_item(&$item)
|
|||
return;
|
||||
}
|
||||
|
||||
$s = DI::httpRequest()->fetch("https://api.opencagedata.com/geocode/v1/json?q=" . $coords[0] . "," . $coords[1] . "&key=" . $key . "&language=" . $language);
|
||||
$s = DI::httpClient()->fetch("https://api.opencagedata.com/geocode/v1/json?q=" . $coords[0] . "," . $coords[1] . "&key=" . $key . "&language=" . $language);
|
||||
|
||||
if (!$s) {
|
||||
Logger::log("API could not be queried", Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue