old boot.php functions replaced in src/module (4)
This commit is contained in:
committed by
Hypolite Petovan
parent
de6eabde58
commit
d47d78f2d4
@@ -26,6 +26,7 @@ use Friendica\BaseModule;
|
||||
use Friendica\Core\Cache\Capability\ICanCache;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Core\Session\Capability\IHandleSessions;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
@@ -63,7 +64,7 @@ class Logout extends BaseModule
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
$visitor_home = null;
|
||||
if (remote_user()) {
|
||||
if (Session::getRemoteUser()) {
|
||||
$visitor_home = Profile::getMyURL();
|
||||
$this->cache->delete('zrlInit:' . $visitor_home);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user