]> git.mxchange.org Git - friendica.git/commitdiff
Move Core\Session::clear() to DI::session()->clear()
authorPhilipp <admin@philipp.info>
Tue, 18 Oct 2022 19:13:58 +0000 (21:13 +0200)
committerPhilipp <admin@philipp.info>
Tue, 18 Oct 2022 19:13:58 +0000 (21:13 +0200)
src/Core/Session.php
src/Module/Delegation.php

index c1d2b73901886f09b56d18b46113150c6c745dc1..a944cf8f56c648e4ce250ff6aa4dad3fab06e87a 100644 (file)
@@ -34,11 +34,6 @@ class Session
        public static $exists = false;
        public static $expire = 180000;
 
-       public static function clear()
-       {
-               DI::session()->clear();
-       }
-
        /**
         * Returns the user id of locally logged in user or false.
         *
index e3ae977e2d1dd37964b7d931ceb49b49c1e2ffbf..fc86e9b64e05a7e874c5835f55742911174d2baa 100644 (file)
@@ -24,7 +24,6 @@ namespace Friendica\Module;
 use Friendica\BaseModule;
 use Friendica\Core\Hook;
 use Friendica\Core\Renderer;
-use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Notification;
@@ -97,7 +96,7 @@ class Delegation extends BaseModule
                        return;
                }
 
-               Session::clear();
+               DI::session()->clear();
 
                DI::auth()->setForUser(DI::app(), $user, true, true);