From c7476513e30baccc6649979b68fb9ada22818a91 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 7 Jan 2020 00:14:01 +0100 Subject: [PATCH] removed some static wrapper --- src/Module/Security/Logout.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Module/Security/Logout.php b/src/Module/Security/Logout.php index cc236bf304..3cbbd4933f 100644 --- a/src/Module/Security/Logout.php +++ b/src/Module/Security/Logout.php @@ -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(); } } -- 2.39.5