X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=blockem%2Fblockem.php;h=1880b9be44e5029bcc36a7da1e20c78746177bc8;hb=05d2707d501b7b1cdd98b0802121e69a6df7d05d;hp=6d93de1dc8f282c4bea758708732101b636c12dd;hpb=bbc629544f66f90d2e47d71094d34b436aaf70b8;p=friendica-addons.git
diff --git a/blockem/blockem.php b/blockem/blockem.php
index 6d93de1d..1880b9be 100644
--- a/blockem/blockem.php
+++ b/blockem/blockem.php
@@ -9,8 +9,6 @@
use Friendica\App;
use Friendica\Core\Hook;
-use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Util\Strings;
@@ -25,18 +23,6 @@ function blockem_install()
Hook::register('enotify_store' , 'addon/blockem/blockem.php', 'blockem_enotify_store');
}
-function blockem_uninstall()
-{
- Hook::unregister('prepare_body_content_filter', 'addon/blockem/blockem.php', 'blockem_prepare_body_content_filter');
- Hook::unregister('prepare_body' , 'addon/blockem/blockem.php', 'blockem_prepare_body');
- Hook::unregister('display_item' , 'addon/blockem/blockem.php', 'blockem_display_item');
- Hook::unregister('addon_settings' , 'addon/blockem/blockem.php', 'blockem_addon_settings');
- Hook::unregister('addon_settings_post' , 'addon/blockem/blockem.php', 'blockem_addon_settings_post');
- Hook::unregister('conversation_start' , 'addon/blockem/blockem.php', 'blockem_conversation_start');
- Hook::unregister('item_photo_menu' , 'addon/blockem/blockem.php', 'blockem_item_photo_menu');
- Hook::unregister('enotify_store' , 'addon/blockem/blockem.php', 'blockem_enotify_store');
-}
-
function blockem_addon_settings (App $a, &$s)
{
if (!local_user()) {
@@ -44,29 +30,29 @@ function blockem_addon_settings (App $a, &$s)
}
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= '' . "\r\n";
+ DI::page()['htmlhead'] .= '' . "\r\n";
- $words = PConfig::get(local_user(), 'blockem', 'words');
+ $words = DI::pConfig()->get(local_user(), 'blockem', 'words');
if (!$words) {
$words = '';
}
$s .= '';
- $s .= '' . L10n::t('Blockem') . '
';
+ $s .= '' . DI::l10n()->t('Blockem') . '
';
$s .= '';
$s .= '