]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Delegation.php
Use DI::baseUrl() for Search\Index.php
[friendica.git] / src / Module / Delegation.php
index a255ad38417b0ea3fadc4cacc76634d8434ff537..cb2f24ce1e3f84d9166abf292799e1424809a4f9 100644 (file)
@@ -3,7 +3,6 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
-use Friendica\App\Authentication;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
@@ -81,9 +80,7 @@ class Delegation extends BaseModule
 
                Session::clear();
 
-               /** @var Authentication $authentication */
-               $authentication = self::getClass(Authentication::class);
-               $authentication->setForUser(DI::app(), $user, true, true);
+               DI::auth()->setForUser(DI::app(), $user, true, true);
 
                if ($limited_id) {
                        Session::set('submanage', $original_id);
@@ -92,7 +89,7 @@ class Delegation extends BaseModule
                $ret = [];
                Hook::callAll('home_init', $ret);
 
-               DI::app()->internalRedirect('profile/' . DI::app()->user['nickname']);
+               DI::baseUrl()->redirect('profile/' . DI::app()->user['nickname']);
                // NOTREACHED
        }