From: hickert Date: Thu, 10 Aug 2006 04:23:10 +0000 (+0000) Subject: Fixed tab w3c errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=17666efa71a03351d74fa3089faf9b137b63d479;p=gosa.git Fixed tab w3c errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4450 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_tabs.inc b/include/class_tabs.inc index 78147cd0f..0b422970e 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -141,11 +141,14 @@ class tabs $display.= ""; /* Shorten string if its too long for the tab headers*/ - $title= ''._($name).''; + $title= _($name); if (mb_strlen($title, 'UTF-8') > 28){ $title= mb_substr($title,0, 25, 'UTF-8')."..."; } - + + /* nobr causes w3c warnings so we use   to keep the tab name in one line */ + $title= preg_replace("/ /"," ",$title); + if ($_SESSION['js']==FALSE){ $display.= "