Rename "HTTPRequest::curl()" to HTTPRequest::get()
This commit is contained in:
committed by
Hypolite Petovan
parent
90193bd02b
commit
72c24efe5b
@@ -131,7 +131,7 @@ function openstreetmap_get_coordinates($a, &$b)
|
||||
$j = DI::cache()->get($cachekey);
|
||||
|
||||
if (is_null($j)) {
|
||||
$curlResult = DI::httpRequest()->curl($nomserver . $args);
|
||||
$curlResult = DI::httpRequest()->get($nomserver . $args);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$j = json_decode($curlResult->getBody(), true);
|
||||
DI::cache()->set($cachekey, $j, Duration::MONTH);
|
||||
|
||||
Reference in New Issue
Block a user