]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Bookmarklet.php
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
[friendica.git] / src / Module / Bookmarklet.php
index 2993c20a7b6b864ae7ad379ccebcfc3e9ae7235c..93f790a37d7be77642a9a6a187d552bd77960a27 100644 (file)
@@ -5,6 +5,7 @@ namespace Friendica\Module;
 use Friendica\BaseModule;
 use Friendica\Core\ACL;
 use Friendica\Core\L10n;
+use Friendica\DI;
 use Friendica\Module\Security\Login;
 use Friendica\Network\HTTPException;
 use Friendica\Util\Strings;
@@ -19,8 +20,8 @@ class Bookmarklet extends BaseModule
        {
                $_GET['mode'] = 'minimal';
 
-               $app = self::getApp();
-               $config = $app->getConfig();
+               $app = DI::app();
+               $config = DI::config();
 
                if (!local_user()) {
                        $output = '<h2>' . L10n::t('Login') . '</h2>';