X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=googlemaps%2Fgooglemaps.php;h=09a566e8b46b2071027cc85fe0cd678ac783b459;hb=ae5ebf1e898f97bf29dc0a73440f8ee89f196f0a;hp=7cccb65024168970a57a91800ce98be01ddea74c;hpb=49eff56e5d1969a10bcc37c4aa0d8ae74c9f939d;p=friendica-addons.git diff --git a/googlemaps/googlemaps.php b/googlemaps/googlemaps.php index 7cccb650..09a566e8 100644 --- a/googlemaps/googlemaps.php +++ b/googlemaps/googlemaps.php @@ -6,20 +6,19 @@ * Author: Michael Vogel * */ -use Friendica\Core\Addon; -use Friendica\Core\Cache; -use Friendica\Core\Logger +use Friendica\Core\Hook; +use Friendica\Core\Logger; function googlemaps_install() { - Addon::registerHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); + Hook::register('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); Logger::log("installed googlemaps"); } function googlemaps_uninstall() { - Addon::unregisterHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); + Hook::unregister('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location'); Logger::log("removed googlemaps"); }