]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Use DI::baseUrl() for Search\Index.php
[friendica.git] / src / Module / Home.php
index f5032f7c30ddaecd93b5a048bccef357eb23b733..3d04849cf46d1c0f1158ef95b61d18847ae9168d 100644 (file)
@@ -25,11 +25,11 @@ class Home extends BaseModule
                Hook::callAll('home_init', $ret);
 
                if (local_user() && ($app->user['nickname'])) {
-                       $app->internalRedirect('network');
+                       DI::baseUrl()->redirect('network');
                }
 
                if (strlen($config->get('system', 'singleuser'))) {
-                       $app->internalRedirect('/profile/' . $config->get('system', 'singleuser'));
+                       DI::baseUrl()->redirect('/profile/' . $config->get('system', 'singleuser'));
                }
 
                $customHome = '';
@@ -42,11 +42,11 @@ class Home extends BaseModule
                        $customHome = $homeFilePath;
 
                        if (file_exists($cssFilePath)) {
-                               $app->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $app->getBaseURL() . '/home.css' . '" media="all" />';
+                               $app->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/home.css' . '" media="all" />';
                        }
                }
 
-               $login = Login::form($app->query_string, $config->get('config', 'register_policy') === Register::CLOSED ? 0 : 1);
+               $login = Login::form(DI::args()->getQueryString(), $config->get('config', 'register_policy') === Register::CLOSED ? 0 : 1);
 
                $content = '';
                Hook::callAll('home_content', $content);