X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_tabs.inc;h=fc1af5227fff3637bc355cc45634c6d7ab86c5bd;hb=704fa7ddaac7fbf1168a1c58c3dd394c14755cd1;hp=a4ef265c766d48a5cd5d84e21629de45a7f06c15;hpb=40fc655fc551f57d6463e4265ce39e72ebbc1132;p=gosa.git diff --git a/include/class_tabs.inc b/include/class_tabs.inc index a4ef265c7..fc1af5227 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -140,9 +140,9 @@ class tabs $display.= ""; /* Shorten string if its too long for the tab headers*/ - $title= _($name); - if (mb_strlen($title, 'UTF-8') > 14){ - $title= mb_substr($title,0, 12, 'UTF-8')."..."; + $title= ''._($name).''; + if (mb_strlen($title, 'UTF-8') > 28){ + $title= mb_substr($title,0, 25, 'UTF-8')."..."; } if ($_SESSION['js']==FALSE){ @@ -292,7 +292,7 @@ class tabs function addSpecialTabs() { $this->by_name['acl']= _("ACL"); - $this->by_object['acl']= new acl($this->config, $this->dn); + $this->by_object['acl']= new acl($this->config, $this, $this->dn); $this->by_object['acl']->parent= &$this; $this->by_name['reference']= _("References"); $this->by_object['reference']= new reference($this->config, $this->dn);