X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=f59b15d1dbcaac331781d5daa33ce65c9750a74b;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=2d635951bec303bcbfcc5455fef2705f29c9986c;hpb=97e27cb523048508e2732f1551116f15c4cda001;p=friendica.git diff --git a/src/App.php b/src/App.php index 2d635951be..f59b15d1db 100644 --- a/src/App.php +++ b/src/App.php @@ -614,9 +614,9 @@ class App if (!empty($_GET['zrl']) && $this->mode->isNormal() && !$this->mode->isBackend() && !local_user()) { // Only continue when the given profile link seems valid // Valid profile links contain a path with "/profile/" and no query parameters - if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == "") && - strstr(parse_url($_GET['zrl'], PHP_URL_PATH), "/profile/")) { - if (Core\Session::get('visitor_home') != $_GET["zrl"]) { + if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == '') && + strstr(parse_url($_GET['zrl'], PHP_URL_PATH), '/profile/')) { + if (Core\Session::get('visitor_home') != $_GET['zrl']) { Core\Session::set('my_url', $_GET['zrl']); Core\Session::set('authenticated', 0); @@ -705,7 +705,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