Break redirection loop during install
This commit is contained in:
parent
dcd602d02a
commit
123c4610e7
1 changed files with 1 additions and 1 deletions
|
@ -1079,7 +1079,7 @@ class App
|
||||||
// but we need "view" module for stylesheet
|
// but we need "view" module for stylesheet
|
||||||
if ($this->getMode()->isInstall() && $this->module !== 'install') {
|
if ($this->getMode()->isInstall() && $this->module !== 'install') {
|
||||||
$this->internalRedirect('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');
|
$this->internalRedirect('maintenance');
|
||||||
} else {
|
} else {
|
||||||
$this->checkURL();
|
$this->checkURL();
|
||||||
|
|
Loading…
Reference in a new issue