From 4785ab07468b227d7a1e84af6ab00d002c184291 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 23 Jan 2026 11:49:41 -0700 Subject: [PATCH] Update code syntax --- app/system/resources/dashboard/system_services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/system/resources/dashboard/system_services.php b/app/system/resources/dashboard/system_services.php index ebbeefc2f..c58f22ee3 100644 --- a/app/system/resources/dashboard/system_services.php +++ b/app/system/resources/dashboard/system_services.php @@ -188,7 +188,8 @@ $widget_key = str_replace(' ', '_', strtolower($widget_name)); //add multi-lingual support - $text = (new text())->get($settings->get('domain','language','en-us'), 'core/user_settings'); + $language = new text(); + $text = $language->get($settings->get('domain','language','en-us'), 'core/user_settings'); //get the dashboard label $widget_label = $text['label-'.$widget_key] ?? $widget_name;