diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-10-05 15:35:14 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-10-30 22:50:22 +0100 |
commit | 90e1a949623ead173c0952f802d7b5c5487251b1 (patch) | |
tree | 544d29dde573cb135b514d0a84c2d95e9207392c /includes/engelsystem.php | |
parent | 0aa5f079258afd5276917c1aff565ec1c6411821 (diff) |
Make application name configurable
* Added app_name configuration option
* Extended `EngelsystemMailer` to prepend the application name to all mails
Closes #426
Diffstat (limited to 'includes/engelsystem.php')
-rw-r--r-- | includes/engelsystem.php | 4 |
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(); } |