]> git.mxchange.org Git - friendica-addons.git/blobdiff - googlemaps/googlemaps.php
Replace datetime functions by Temporal methods
[friendica-addons.git] / googlemaps / googlemaps.php
index f5b573ac5a29787d68e1fc74e6bb482e71171950..e294c8e0e4e16a7155d6697a050df36f92d86e40 100644 (file)
@@ -6,19 +6,19 @@
  * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
  *
  */
-
+use Friendica\Core\Addon;
 use Friendica\Core\Cache;
 
 function googlemaps_install()
 {
-       register_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
+       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');
+       Addon::unregisterHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
 
        logger("removed googlemaps");
 }