From: cajus Date: Wed, 18 May 2005 11:28:39 +0000 (+0000) Subject: Cut descriptions to avoid tab breakage X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecff0ff009671902d2f703e05b8f444f39c5bc22;p=gosa.git Cut descriptions to avoid tab breakage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@240 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_tabs.inc b/include/class_tabs.inc index f94d98501..1bab2b70f 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -137,11 +137,15 @@ class tabs /* Paint tab */ $display.= ""; + $title= _($name); + if (mb_strlen($title) > 14){ + $title= mb_substr($title,0, 11, 'UTF-8')."..."; + } if ($_SESSION['js']==FALSE){ $display.= "
"._($name)."$title