Break redirection loop during install

This commit is contained in:
Hypolite Petovan 2019-05-08 08:30:59 -04:00 committed by GitHub
parent dcd602d02a
commit 123c4610e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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();