Alerts: replace 'error' class with 'danger'

This commit is contained in:
2023-03-11 13:30:02 +01:00
parent f9eefe7b41
commit 0366df9b5f
6 changed files with 14 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ class Dispatcher
public static function kickGuest($title = null, $message = null)
{
$form = new LogInForm('Log in');
$form->adopt(new Alert($title ?? '', $message ?? 'You need to be logged in to view this page.', 'error'));
$form->adopt(new Alert($title ?? '', $message ?? 'You need to be logged in to view this page.', 'danger'));
$form->setRedirectUrl($_SERVER['REQUEST_URI']);
$page = new MainTemplate('Login required');