diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 1bab2b70f9a0972efafe94992acd805f6def0a4a..94a9dd1f311cdf1a7bcf1ac0474bfb05a1ffa2a9 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
/* Paint tab */
$display.= "<td style=\"vertical-align:bottom; width:100px;\">";
+
+ /* Shorten string if its too long for the tab headers*/
$title= _($name);
- if (mb_strlen($title) > 14){
- $title= mb_substr($title,0, 11, 'UTF-8')."...";
+ if (mb_strlen($title, 'UTF-8') > 14){
+ $title= mb_substr($title,0, 12, 'UTF-8')."...";
}
+
if ($_SESSION['js']==FALSE){
$display.= "<div class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
" class=\"$style[$index]\" value=\"$title\"";