mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 00:56:08 +02:00
feat: system alert message (#3139)
This commit is contained in:
parent
95c199c2eb
commit
001427243c
5 changed files with 30 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue