X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmpp%2Fxmpp.php;h=81adec8486b0848f74b7a3fa208c998e6d55ddcc;hb=1030498c0980ebed11147c939837cb930802a0c4;hp=33da9715554de63a0c0b039aa831c01411dafc88;hpb=1357817fc38de7be7dc8ebffc1fa0961796fd32d;p=friendica-addons.git diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php index 33da9715..81adec84 100644 --- a/xmpp/xmpp.php +++ b/xmpp/xmpp.php @@ -21,14 +21,6 @@ function xmpp_install() Hook::register('logged_in', 'addon/xmpp/xmpp.php', 'xmpp_login'); } -function xmpp_uninstall() -{ - Hook::unregister('addon_settings', 'addon/xmpp/xmpp.php', 'xmpp_addon_settings'); - Hook::unregister('addon_settings_post', 'addon/xmpp/xmpp.php', 'xmpp_addon_settings_post'); - Hook::unregister('page_end', 'addon/xmpp/xmpp.php', 'xmpp_script'); - Hook::unregister('logged_in', 'addon/xmpp/xmpp.php', 'xmpp_login'); -} - function xmpp_addon_settings_post() { if (!local_user() || empty($_POST['xmpp-settings-submit'])) { @@ -38,8 +30,6 @@ function xmpp_addon_settings_post() DI::pConfig()->set(local_user(), 'xmpp', 'enabled', $_POST['xmpp_enabled'] ?? false); DI::pConfig()->set(local_user(), 'xmpp', 'individual', $_POST['xmpp_individual'] ?? false); DI::pConfig()->set(local_user(), 'xmpp', 'bosh_proxy', $_POST['xmpp_bosh_proxy'] ?? ''); - - info(DI::l10n()->t('XMPP settings updated.') . EOL); } function xmpp_addon_settings(App $a, &$s) @@ -121,8 +111,6 @@ function xmpp_addon_admin_post() DI::config()->set('xmpp', 'bosh_proxy', $bosh_proxy); DI::config()->set('xmpp', 'central_userbase', $central_userbase); - - info(DI::l10n()->t('Settings updated.') . EOL); } function xmpp_script(App $a)