X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmpp%2Fxmpp.php;h=33da9715554de63a0c0b039aa831c01411dafc88;hb=b11e418f3570a5a61bab3fb3bc2660b92635b108;hp=552f5f9e5cdf37935c6bb31560729eb6503c2da1;hpb=a26bfe79e97813ebe4c27fa3cb65c32669a9f2e5;p=friendica-addons.git
diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php
index 552f5f9e..33da9715 100644
--- a/xmpp/xmpp.php
+++ b/xmpp/xmpp.php
@@ -8,9 +8,7 @@
*/
use Friendica\App;
-use Friendica\Core\Config;
use Friendica\Core\Hook;
-use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;
@@ -41,7 +39,7 @@ function xmpp_addon_settings_post()
DI::pConfig()->set(local_user(), 'xmpp', 'individual', $_POST['xmpp_individual'] ?? false);
DI::pConfig()->set(local_user(), 'xmpp', 'bosh_proxy', $_POST['xmpp_bosh_proxy'] ?? '');
- info(L10n::t('XMPP settings updated.') . EOL);
+ info(DI::l10n()->t('XMPP settings updated.') . EOL);
}
function xmpp_addon_settings(App $a, &$s)
@@ -66,26 +64,26 @@ function xmpp_addon_settings(App $a, &$s)
/* Add some HTML to the existing form */
$s .= '';
- $s .= '' . L10n::t('XMPP-Chat (Jabber)') . '
';
+ $s .= '' . DI::l10n()->t('XMPP-Chat (Jabber)') . '
';
$s .= '';
$s .= '