add missing namespaces/fix wrong class-names
This commit is contained in:
parent
bce67496a7
commit
191e298504
3 changed files with 7 additions and 7 deletions
|
@ -48,7 +48,7 @@ function geocoordinates_resolve_item(&$item)
|
|||
$coords[0] = round($coords[0], 5);
|
||||
$coords[1] = round($coords[1], 5);
|
||||
|
||||
$result = Cache::get("geocoordinates:".$language.":".$coords[0]."-".$coords[1]);
|
||||
$result = DI::cache()->get("geocoordinates:".$language.":".$coords[0]."-".$coords[1]);
|
||||
if (!is_null($result)) {
|
||||
$item["location"] = $result;
|
||||
return;
|
||||
|
@ -78,7 +78,7 @@ function geocoordinates_resolve_item(&$item)
|
|||
Logger::log("Got location for coordinates ".$coords[0]."-".$coords[1].": ".$item["location"], Logger::DEBUG);
|
||||
|
||||
if ($item["location"] != "")
|
||||
Cache::set("geocoordinates:".$language.":".$coords[0]."-".$coords[1], $item["location"]);
|
||||
DI::cache()->set("geocoordinates:".$language.":".$coords[0]."-".$coords[1], $item["location"]);
|
||||
}
|
||||
|
||||
function geocoordinates_post_hook($a, &$item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue