mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:40:16 +00:00
Move Core\Session::clear() to DI::session()->clear()
This commit is contained in:
parent
a2eb0c7378
commit
4a2f67aa9a
2 changed files with 1 additions and 7 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue