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 0f0c053..41c50fd 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();