Fixing Mainentance & Exception vie
This commit is contained in:
parent
7ccfbd8ef2
commit
efe5d641a2
|
@ -703,7 +703,7 @@ class App
|
||||||
$page['page_title'] = $moduleName;
|
$page['page_title'] = $moduleName;
|
||||||
|
|
||||||
if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) {
|
if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) {
|
||||||
$module = new ModuleController('maintenance', new Maintenance());
|
$module = new ModuleController('maintenance', new Maintenance($this->l10n));
|
||||||
} else {
|
} else {
|
||||||
// determine the module class and save it to the module instance
|
// determine the module class and save it to the module instance
|
||||||
// @todo there's an implicit dependency due SESSION::start(), so it has to be called here (yet)
|
// @todo there's an implicit dependency due SESSION::start(), so it has to be called here (yet)
|
||||||
|
@ -713,7 +713,7 @@ class App
|
||||||
// Let the module run it's internal process (init, get, post, ...)
|
// Let the module run it's internal process (init, get, post, ...)
|
||||||
$module->run($this->l10n, $this->baseURL, $this->logger, $this->profiler, $_SERVER, $_POST);
|
$module->run($this->l10n, $this->baseURL, $this->logger, $this->profiler, $_SERVER, $_POST);
|
||||||
} catch (HTTPException $e) {
|
} catch (HTTPException $e) {
|
||||||
ModuleHTTPException::rawContent($e);
|
(new ModuleHTTPException())->rawContent($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
$page->run($this, $this->baseURL, $this->mode, $module, $this->l10n, $this->profiler, $this->config, $pconfig);
|
$page->run($this, $this->baseURL, $this->mode, $module, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user