From 795343379c8ef5c6d6fef53cc25ba7c885230b96 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 14 Sep 2024 21:49:53 -0600 Subject: [PATCH] Handled in its own dashboard widget For this reason remove the registration count from system status. --- app/system/resources/dashboard/system_status.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/app/system/resources/dashboard/system_status.php b/app/system/resources/dashboard/system_status.php index bba23c9439..c65e8c3c32 100644 --- a/app/system/resources/dashboard/system_status.php +++ b/app/system/resources/dashboard/system_status.php @@ -254,7 +254,9 @@ } //channel count - $esl = event_socket::create(); + if ($esl == null) { + $esl = event_socket::create(); + } if ($esl->is_connected()) { $tmp = event_socket::api('status'); $matches = Array(); @@ -268,18 +270,6 @@ $c = ($c) ? 0 : 1; } - //registration count - if ($esl->is_connected() && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) { - $registration = new registrations; - $registrations = $registration->count(); - $tr_link = "href='".PROJECT_PATH."/app/registrations/registrations.php'"; - echo "\n"; - echo "".$text['label-registrations']."\n"; - echo "".$registrations."\n"; - echo "\n"; - $c = ($c) ? 0 : 1; - } - echo "\n"; echo ""; //$n++;