summaryrefslogtreecommitdiff
path: root/includes/engelsystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/engelsystem.php')
-rw-r--r--includes/engelsystem.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/engelsystem.php b/includes/engelsystem.php
index a5dee186..caebe09b 100644
--- a/includes/engelsystem.php
+++ b/includes/engelsystem.php
@@ -16,7 +16,9 @@ require __DIR__ . '/includes.php';
* Check for maintenance
*/
if ($app->get('config')->get('maintenance')) {
- echo file_get_contents(__DIR__ . '/../resources/views/layouts/maintenance.html');
+ $maintenance = file_get_contents(__DIR__ . '/../resources/views/layouts/maintenance.html');
+ $maintenance = str_replace('%APP_NAME%', $app->get('config')->get('app_name'), $maintenance);
+ echo $maintenance;
die();
}