diff --git a/src/opnsense/mvc/app/library/OPNsense/System/SystemStatus.php b/src/opnsense/mvc/app/library/OPNsense/System/SystemStatus.php index 96d5f7bfc..896a209fc 100644 --- a/src/opnsense/mvc/app/library/OPNsense/System/SystemStatus.php +++ b/src/opnsense/mvc/app/library/OPNsense/System/SystemStatus.php @@ -53,7 +53,7 @@ class SystemStatus $all = glob(__DIR__ . '/Status/*.php'); $classes = array_map(function ($file) { if (strpos($file, 'Status') !== false) { - return '\\OPNsense\\System\\Status\\' . str_replace('.php', '', $file); + return '\\OPNsense\\System\\Status\\' . basename($file, '.php'); } }, $all);