mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:42:54 +00:00
removed some static wrapper
This commit is contained in:
parent
20f1ab05e6
commit
c7476513e3
1 changed files with 3 additions and 6 deletions
|
@ -6,10 +6,7 @@
|
|||
namespace Friendica\Module\Security;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Profile;
|
||||
|
@ -29,17 +26,17 @@ class Logout extends BaseModule
|
|||
$visitor_home = null;
|
||||
if (remote_user()) {
|
||||
$visitor_home = Profile::getMyURL();
|
||||
Cache::delete('zrlInit:' . $visitor_home);
|
||||
DI::cache()->delete('zrlInit:' . $visitor_home);
|
||||
}
|
||||
|
||||
Hook::callAll("logging_out");
|
||||
DI::cookie()->clear();
|
||||
Session::clear();
|
||||
DI::session()->clear();
|
||||
|
||||
if ($visitor_home) {
|
||||
System::externalRedirect($visitor_home);
|
||||
} else {
|
||||
info(L10n::t('Logged out.'));
|
||||
info(DI::l10n()->t('Logged out.'));
|
||||
DI::baseUrl()->redirect();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue