Fixes remnants of old messaging system

main
Yasen Pramatarov 2025-02-17 15:47:36 +02:00
parent ae8d84012b
commit f53a3eef05
2 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,14 @@
<?php <?php
if (isset($messages) && is_array($messages)) {
foreach ($messages as $msg) { if (isset($system_messages) && is_array($system_messages)) {
echo Feedback::render($msg['category'], $msg['key'], $msg['custom_message'] ?? null, $msg['dismissible'] ?? false, $msg['small'] ?? false); foreach ($system_messages as $msg) {
echo Feedback::render(
$msg['category'],
$msg['key'],
$msg['custom_message'] ?? null,
$msg['dismissible'] ?? false,
$msg['small'] ?? false
);
} }
} }

View File

@ -45,8 +45,8 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<?php if (isset($messages) && is_array($messages)): ?> <?php if (isset($system_messages) && is_array($system_messages)): ?>
<?php foreach ($messages as $msg): ?> <?php foreach ($system_messages as $msg): ?>
<?= Feedback::render($msg['category'], $msg['key'], $msg['custom_message'] ?? null) ?> <?= Feedback::render($msg['category'], $msg['key'], $msg['custom_message'] ?? null) ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>