X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FHome.php;h=fbba889a883af7839d36b7999a3e719d08536820;hb=be8251ef0ca39376745dd0ab298208fb41395cce;hp=43e783f18c64f9ce8410a63175a07987e3d0223f;hpb=097620b62799c96d610d73410ec07a6b8cdf82f0;p=friendica.git diff --git a/src/Module/Home.php b/src/Module/Home.php index 43e783f18c..fbba889a88 100644 --- a/src/Module/Home.php +++ b/src/Module/Home.php @@ -1,6 +1,6 @@ redirect(User::getActorName()); + } + } + + protected function content(array $request = []): string { $app = DI::app(); $config = DI::config(); @@ -42,11 +51,11 @@ class Home extends BaseModule Hook::callAll('home_init', $ret); - if (local_user() && ($app->user['nickname'])) { + if (DI::userSession()->getLocalUserId() && ($app->getLoggedInUserNickname())) { DI::baseUrl()->redirect('network'); } - if (strlen($config->get('system', 'singleuser'))) { + if ($config->get('system', 'singleuser')) { DI::baseUrl()->redirect('/profile/' . $config->get('system', 'singleuser')); } @@ -60,7 +69,7 @@ class Home extends BaseModule $customHome = $homeFilePath; if (file_exists($cssFilePath)) { - DI::page()['htmlhead'] .= ''; + DI::page()->registerStylesheet('home.css', 'all'); } }