X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=planets%2Fplanets.php;h=9fed41862ab45010f3b6e5dc46d2693ba70d5d07;hb=2ed46eeefe70b7957961e8575157342cdcf368df;hp=e7a1e9b8834eac721f7647636792699fceec2776;hpb=febc835a2d90509a54a41dca07dba1d8e3ed6d07;p=friendica-addons.git diff --git a/planets/planets.php b/planets/planets.php index e7a1e9b8..9fed4186 100644 --- a/planets/planets.php +++ b/planets/planets.php @@ -7,9 +7,7 @@ * Author: Tony Baldwin */ use Friendica\Core\Hook; -use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\DI; function planets_install() { @@ -37,27 +35,6 @@ function planets_install() { Logger::log("installed planets"); } - -function planets_uninstall() { - - /** - * - * uninstall unregisters any hooks created with register_hook - * during install. It may also delete configuration settings - * and any other cleanup. - * - */ - - Hook::unregister('post_local', 'addon/planets/planets.php', 'planets_post_hook'); - Hook::unregister('addon_settings', 'addon/planets/planets.php', 'planets_settings'); - Hook::unregister('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post'); - - - Logger::log("removed planets"); -} - - - function planets_post_hook($a, &$item) { /** @@ -151,22 +128,22 @@ function planets_settings(&$a,&$s) { /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . L10n::t('Planets') . '

'; + $s .= '

' . DI::l10n()->t('Planets') . '

'; $s .= '
'; $s .= ''; + $s .= '
'; }