mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 13:04:27 +02:00
old boot.php functions replaced in src/module (4)
This commit is contained in:
parent
de6eabde58
commit
d47d78f2d4
22 changed files with 140 additions and 158 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue