add missing namespaces/fix wrong class-names

This commit is contained in:
nupplaPhil 2020-01-19 16:29:54 +01:00
parent bce67496a7
commit 191e298504
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 7 additions and 7 deletions

View file

@ -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)