X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=googlemaps%2Fgooglemaps.php;h=09a566e8b46b2071027cc85fe0cd678ac783b459;hb=ae5ebf1e898f97bf29dc0a73440f8ee89f196f0a;hp=f5b573ac5a29787d68e1fc74e6bb482e71171950;hpb=6cda95870efc8fdd98b0b0e0c56f047e0084ce83;p=friendica-addons.git diff --git a/googlemaps/googlemaps.php b/googlemaps/googlemaps.php index f5b573ac..09a566e8 100644 --- a/googlemaps/googlemaps.php +++ b/googlemaps/googlemaps.php @@ -6,21 +6,21 @@ * Author: Michael Vogel * */ - -use Friendica\Core\Cache; +use Friendica\Core\Hook; +use Friendica\Core\Logger; function googlemaps_install() { - register_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); + Hook::register('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); - logger("installed googlemaps"); + Logger::log("installed googlemaps"); } function googlemaps_uninstall() { - unregister_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); + Hook::unregister('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); - logger("removed googlemaps"); + Logger::log("removed googlemaps"); } function googlemaps_location($a, &$item)