jilo-web/app/templates/block-message.php

19 lines
355 B
PHP
Raw Normal View History

2024-10-31 09:35:41 +00:00
<?php
2024-07-01 09:45:07 +00:00
2024-11-11 09:33:02 +00:00
// Display and clean up session messages
foreach (['error', 'notice'] as $type) {
if (isset($_SESSION[$type])) {
renderMessage($_SESSION[$type], $type, true);
}
2024-10-31 09:35:41 +00:00
}
2024-11-11 09:33:02 +00:00
// Display standalone messages
2024-11-08 10:38:19 +00:00
if (isset($error)) {
2024-11-11 09:33:02 +00:00
renderMessage($error, 'error', true);
2024-11-08 10:38:19 +00:00
}
2024-11-11 09:33:02 +00:00
if (isset($notice)) {
renderMessage($notice, 'notice', true);
2024-10-31 09:35:41 +00:00
}
?>