Apply autoloader support for status messages

This commit is contained in:
billz
2023-09-16 11:46:11 +02:00
parent 07b950cf65
commit 33c596189d
15 changed files with 15 additions and 535 deletions

View File

@@ -10,7 +10,7 @@ require_once 'includes/functions.php';
function DisplayDashboard(&$extraFooterScripts)
{
getWifiInterface();
$status = new StatusMessages();
$status = new \RaspAP\Messages\StatusMessage;
// Need this check interface name for proper shell execution.
if (!preg_match('/^([a-zA-Z0-9]+)$/', $_SESSION['wifi_client_interface'])) {
$status->addMessage(_('Interface name invalid.'), 'danger');