From: cajus Date: Wed, 18 May 2005 11:43:26 +0000 (+0000) Subject: Oups. Made mb_strlen work propperly with utf-8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d9bcd22304bace2706148594ba6125a4a94f6fb;p=gosa.git Oups. Made mb_strlen work propperly with utf-8 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@242 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_tabs.inc b/include/class_tabs.inc index 1bab2b70f..a8608b061 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -137,10 +137,13 @@ class tabs /* Paint tab */ $display.= ""; + + /* Shorten string if its too long for the tab headers*/ $title= _($name); - if (mb_strlen($title) > 14){ + if (mb_strlen($title, 'UTF-8') > 13){ $title= mb_substr($title,0, 11, 'UTF-8')."..."; } + if ($_SESSION['js']==FALSE){ $display.= "