From: cajus Date: Wed, 21 May 2008 09:46:26 +0000 (+0000) Subject: Switched order of tabs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59f695c63acede1c48d489f2a78df097a44c2602;p=gosa.git Switched order of tabs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10980 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc index 843b5452e..f8eeab1eb 100644 --- a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc +++ b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc @@ -179,6 +179,25 @@ class ogrouptabs extends tabs } } + /* Add environment tab if user or group is member in this object group*/ + if(class_available("environment")){ + if((preg_match("/G/",$objects) || preg_match("/U/",$objects)) && !isset($this->by_name['environment'])){ + $this->by_name['environment']= _("Environment"); + $this->by_object['environment']= new environment($this->config, $this->dn); + $this->by_object['environment']->acl = "#all#"; + $this->by_object['environment']->parent= &$this; + } + } + + /* Remove environment tab if not required any longer */ + if(class_available("environment")){ + if(!preg_match("/G/",$objects) && !preg_match("/U/",$objects) && isset($this->by_name['environment'])){ + $this->by_object['environment']->remove_from_parent(); + unset($this->by_name['environment']); + unset($this->by_object['environment']); + } + } + /* Add application tab if user or group is member in this object group*/ if(class_available("appgroup")){ if((preg_match("/G/",$objects) || preg_match("/U/",$objects)) && !isset($this->by_name['appgroup'])){ @@ -198,24 +217,6 @@ class ogrouptabs extends tabs } } - /* Add environment tab if user or group is member in this object group*/ - if(class_available("environment")){ - if((preg_match("/G/",$objects) || preg_match("/U/",$objects)) && !isset($this->by_name['environment'])){ - $this->by_name['environment']= _("Environment"); - $this->by_object['environment']= new environment($this->config, $this->dn); - $this->by_object['environment']->acl = "#all#"; - $this->by_object['environment']->parent= &$this; - } - } - - /* Remove environment tab if not required any longer */ - if(class_available("environment")){ - if(!preg_match("/G/",$objects) && !preg_match("/U/",$objects) && isset($this->by_name['environment'])){ - $this->by_object['environment']->remove_from_parent(); - unset($this->by_name['environment']); - unset($this->by_object['environment']); - } - } /* Move reference tab to second position from right */ if(class_available("acl")){ if(isset($this->by_name['acl'])){