From 90e1a949623ead173c0952f802d7b5c5487251b1 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 5 Oct 2018 15:35:14 +0200 Subject: Make application name configurable * Added app_name configuration option * Extended `EngelsystemMailer` to prepend the application name to all mails Closes #426 --- includes/engelsystem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/engelsystem.php') 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(); } -- cgit v1.2.3-70-g09d2