]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Merge pull request #8006 from MrPetovan/bug/7991-remove-group-add-restrictions
[friendica.git] / src / Module / Home.php
index adcdb02a63202e1809e25bb8c4aad8024aeb878f..e6fb8c349669b241f53b702300c65a22da60f4d1 100644 (file)
@@ -12,16 +12,8 @@ use Friendica\Core\Renderer;
  */
 class Home extends BaseModule
 {
-       public static function content()
+       public static function content(array $parameters = [])
        {
-               if (!empty($_SESSION['theme'])) {
-                       unset($_SESSION['theme']);
-               }
-
-               if (!empty($_SESSION['mobile-theme'])) {
-                       unset($_SESSION['mobile-theme']);
-               }
-
                $app = self::getApp();
                $config = $app->getConfig();
 
@@ -41,8 +33,8 @@ class Home extends BaseModule
                $customHome = '';
                $defaultHeader = ($config->get('config', 'sitename') ? L10n::t('Welcome to %s', $config->get('config', 'sitename')) : '');
 
-               $homeFilePath = $app->getBaseURL() . '/home.html';
-               $cssFilePath = $app->getBaseURL() . '/home.css';
+               $homeFilePath = $app->getBasePath() . '/home.html';
+               $cssFilePath = $app->getBasePath() . '/home.css';
 
                if (file_exists($homeFilePath)) {
                        $customHome = $homeFilePath;