feat: system alert message (#3139)

This commit is contained in:
Dag 2022-11-15 00:32:04 +01:00 committed by GitHub
parent 95c199c2eb
commit 001427243c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 14 deletions

View file

@ -17,6 +17,7 @@ function render(string $template, array $context = []): string
if ($template === 'base.html.php') {
throw new \Exception('Do not render base.html.php into itself');
}
$context['system_message'] = Configuration::getConfig('system', 'message');
$context['page'] = render_template($template, $context);
return render_template('base.html.php', $context);
}