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;