From e94a9fb5e4b6a2bc07e0bb4cf8ea35fc70c4bbf0 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 10 May 2012 12:31:27 -0400
Subject: [PATCH] Merged revisions 3049-3051,3053-3054,3058,3070,3074-3077,3082,3086-3088,3091-3092,3094-3095 from stable branch.

---
 interface/web/dashboard/dashlets/modules.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/interface/web/dashboard/dashlets/modules.php b/interface/web/dashboard/dashlets/modules.php
index cfb2e12..2f16329 100644
--- a/interface/web/dashboard/dashlets/modules.php
+++ b/interface/web/dashboard/dashlets/modules.php
@@ -29,7 +29,11 @@
 					/* We don't want to show the dashboard */
 					if ($mt != 'dashboard') {
 						$module_title = $app->lng($module['title']);
-						if(strlen($module_title) > 8) $module_title = substr($module_title,0,7).'..';
+						if(function_exists('mb_strlen')) {
+							if(mb_strlen($module_title,"UTF-8") > 8) $module_title = mb_substr($module_title,0,7,"UTF-8").'..';
+						} else {
+							if(strlen($module_title) > 8) $module_title = substr($module_title,0,7).'..';
+						}
 						$mod[] = array(	'modules_title' 	=> $module_title,
 								'modules_startpage'	=> $module['startpage'],
 								'modules_name'  	=> $module['name']);

--
Gitblit v1.9.1