mirror of
https://github.com/friendica/friendica
synced 2025-04-30 02:24:23 +02:00
Remove direct calls to App->user
This commit is contained in:
parent
266ee26240
commit
fc283ab928
51 changed files with 238 additions and 166 deletions
|
@ -277,8 +277,8 @@ class Page implements ArrayAccess
|
|||
// If you're just visiting, let javascript take you home
|
||||
if (!empty($_SESSION['visitor_home'])) {
|
||||
$homebase = $_SESSION['visitor_home'];
|
||||
} elseif (!empty($app->user['nickname'])) {
|
||||
$homebase = 'profile/' . $app->user['nickname'];
|
||||
} elseif (!empty($app->getNickname())) {
|
||||
$homebase = 'profile/' . $app->getNickname();
|
||||
}
|
||||
|
||||
if (isset($homebase)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue