mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Move mod/maintenance to src/Module/Maintenance
This commit is contained in:
parent
0046e62077
commit
62fd5375dc
5 changed files with 45 additions and 33 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue