From efe5d641a274e99bf8b4dbcaaae1d9d4dd6bff10 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 19 Nov 2021 22:50:48 +0100 Subject: [PATCH] Fixing Mainentance & Exception vie --- src/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 2dd8f9d1ab..f4534c0158 100644 --- a/src/App.php +++ b/src/App.php @@ -703,7 +703,7 @@ class App $page['page_title'] = $moduleName; 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 { // 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) @@ -713,7 +713,7 @@ class App // Let the module run it's internal process (init, get, post, ...) $module->run($this->l10n, $this->baseURL, $this->logger, $this->profiler, $_SERVER, $_POST); } 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);