]> git.mxchange.org Git - friendica-addons.git/blobdiff - googlemaps/googlemaps.php
Merge branch '3.6-rc'
[friendica-addons.git] / googlemaps / googlemaps.php
index 0b031f4da215b6ce10a1a07f43d4d4be94d34970..1a2a974f34aedce312560a598f33cf9c9ebce56b 100644 (file)
@@ -6,18 +6,19 @@
  * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
  *
  */
+use Friendica\Core\Addon;
+use Friendica\Core\Cache;
 
-require_once('include/cache.php');
-
-
-function googlemaps_install() {
-       register_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
+function googlemaps_install()
+{
+       Addon::registerHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
 
        logger("installed googlemaps");
 }
 
-function googlemaps_uninstall() {
-       unregister_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
+function googlemaps_uninstall()
+{
+       Addon::unregisterHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
 
        logger("removed googlemaps");
 }