Code

Added speed optimizations
[gosa.git] / plugins / admin / systems / tabs_workstation.inc
index edfda8e02ad6721e600376c39daba2a4d7b8dda6..d5bab394b9dd6344d78821bd6ef71a949d5113a5 100644 (file)
@@ -12,12 +12,14 @@ class worktabs extends tabs
     foreach ($data as $tab){
       if($tab['CLASS'] == "printgeneric"){
         $this->by_name[$tab['CLASS']]= $tab['NAME'];
-        $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn,$category);
+        $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn,$this);
         $this->by_object[$tab['CLASS']]->parent= &$this;
+        $this->by_object[$tab['CLASS']]->set_acl_category($category);
       }else{
         $this->by_name[$tab['CLASS']]= $tab['NAME'];
-        $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn,$category);
+        $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn);
         $this->by_object[$tab['CLASS']]->parent= &$this;
+        $this->by_object[$tab['CLASS']]->set_acl_category($category);
       }
       /* Initialize current */
       if ($this->current == ""){