X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FHome.php;h=c202fbfcd9334ffb8540bf82d97c9699c5cb81ff;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=f4e6b973398e1a23c1e72654a61197460b119e20;hpb=190efcefad29a5971a0cd487d2d67dab638c5a4e;p=friendica.git diff --git a/src/Module/Home.php b/src/Module/Home.php index f4e6b97339..c202fbfcd9 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->getLoggedInUserNickname())) { + 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'); } }