Remove direct calls to App->user
This commit is contained in:
@@ -42,7 +42,7 @@ class Home extends BaseModule
|
||||
|
||||
Hook::callAll('home_init', $ret);
|
||||
|
||||
if (local_user() && ($app->user['nickname'])) {
|
||||
if (local_user() && ($app->getNickname())) {
|
||||
DI::baseUrl()->redirect('network');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user