]> git.mxchange.org Git - friendica.git/commitdiff
Break redirection loop during install
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 8 May 2019 12:30:59 +0000 (08:30 -0400)
committerGitHub <noreply@github.com>
Wed, 8 May 2019 12:30:59 +0000 (08:30 -0400)
src/App.php

index 0f0c0537e4d98ae5538fda12993c2734c49e6d4f..41c50fda5d527cef4c6df1b036cf89159955db0b 100644 (file)
@@ -1079,7 +1079,7 @@ class App
                // but we need "view" module for stylesheet
                if ($this->getMode()->isInstall() && $this->module !== 'install') {
                        $this->internalRedirect('install');
-               } elseif (!$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') {
+               } elseif (!$this->getMode()->isInstall() && !$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') {
                        $this->internalRedirect('maintenance');
                } else {
                        $this->checkURL();