Move mod/maintenance to src/Module/Maintenance

This commit is contained in:
Philipp Holzer 2019-05-04 13:42:26 +02:00
parent 0046e62077
commit 62fd5375dc
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 45 additions and 33 deletions

View file

@ -1077,10 +1077,10 @@ class App
// in install mode, any url loads install module
// but we need "view" module for stylesheet
if ($this->getMode()->isInstall() && $this->module != 'view') {
$this->module = 'install';
} elseif (!$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module != 'view') {
$this->module = 'maintenance';
if ($this->getMode()->isInstall() && $this->module !== 'install') {
$this->internalRedirect('install');
} elseif (!$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') {
$this->internalRedirect('maintenance');
} else {
$this->checkURL();
Core\Update::check($this->getBasePath(), false, $this->getMode());