From 4a2f67aa9a8d5422c7bdf4ac270eda2abf74f9b3 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 18 Oct 2022 21:13:58 +0200 Subject: [PATCH] Move Core\Session::clear() to DI::session()->clear() --- src/Core/Session.php | 5 ----- src/Module/Delegation.php | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Core/Session.php b/src/Core/Session.php index c1d2b73901..a944cf8f56 100644 --- a/src/Core/Session.php +++ b/src/Core/Session.php @@ -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. * diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index e3ae977e2d..fc86e9b64e 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -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);