From ecff0ff009671902d2f703e05b8f444f39c5bc22 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 18 May 2005 11:28:39 +0000 Subject: [PATCH] Cut descriptions to avoid tab breakage git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@240 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_tabs.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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