diff --git a/core/dashboard/resources/dashboard/icon.php b/core/dashboard/resources/dashboard/icon.php index e5c8242896..f5bfe2af0d 100644 --- a/core/dashboard/resources/dashboard/icon.php +++ b/core/dashboard/resources/dashboard/icon.php @@ -4,13 +4,22 @@ require_once dirname(__DIR__, 4) . "/resources/require.php"; require_once "resources/check_auth.php"; +//convert to a key + $dashboard_key = str_replace(' ', '_', strtolower($dashboard_name)); + //add multi-lingual support $language = new text; - $text = $language->get($_SESSION['domain']['language']['code'], 'core/dashboard'); + $text = $language->get($_SESSION['domain']['language']['code'], dirname($dashboard_url)); + +//get the dashboard label + $dashboard_label = $text['title-'.$dashboard_key]; + if (empty($dashboard_label)) { + $dashboard_label = $dashboard_name; + } //prepare variables $dashboard_target = ($dashboard_target == 'new') ? '_blank' : '_self'; - $window_parameters = 'aaa=bbb,'; + $window_parameters = ''; if (!empty($dashboard_width) && !empty($dashboard_height)) { $window_parameters .= "width=".$dashboard_width.",height=".$dashboard_height; } @@ -18,7 +27,7 @@ //dashboard icon echo "