Replace deprecated Addon::*registerHook by Hook::*register
This commit is contained in:
parent
eaeb834819
commit
c27b1cb66f
82 changed files with 625 additions and 630 deletions
|
@ -6,20 +6,19 @@
|
|||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||
*
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Cache;
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue