X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=ceace228f5f8ca993ab19685f28b7225ede4782b;hb=312e4d8844930d14c7701701fe8b27c3e49ecf84;hp=400ea15b195c899ae68ee1fcc8c0ffe2d2a16451;hpb=3c70d592f642267b0397a429e83bec7b76eb1dd8;p=friendica.git diff --git a/src/App.php b/src/App.php index 400ea15b19..ceace228f5 100644 --- a/src/App.php +++ b/src/App.php @@ -648,10 +648,6 @@ class App header('X-Account-Management-Status: none'); } - $_SESSION['sysmsg'] = Core\Session::get('sysmsg', []); - $_SESSION['sysmsg_info'] = Core\Session::get('sysmsg_info', []); - $_SESSION['last_updated'] = Core\Session::get('last_updated', []); - /* * check_config() is responsible for running update scripts. These automatically * update the DB schema whenever we push a new one out. It also checks to see if @@ -705,7 +701,8 @@ class App // Initialize module that can set the current theme in the init() method, either directly or via App->setProfileOwner $page['page_title'] = $moduleName; - if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) { + // The "view" module is required to show the theme CSS + if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED) && $moduleName !== 'view') { $module = $router->getModule(Maintenance::class); } else { // determine the module class and save it to the module instance