From 8313c3a004e14a2376ac2ed53b71215be08fbcb3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Oct 2007 06:47:19 +0000 Subject: [PATCH] Removed unused/not working code. Removed code part, which added the ".." entry to the management list. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7525 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../departments/class_departmentManagement.inc | 17 +---------------- plugins/admin/groups/class_groupApplication.inc | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index 98f0cb253..5c715a2c4 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -318,22 +318,8 @@ class departmentManagement extends plugin $base = $this->DivListDepartment->selectedBase; $base_back = preg_replace("/^[^,]+,/","",$base); $Regex = $this->DivListDepartment->Regex; + $this->departments= array(); - // Create Array to Test if we have a valid back button - $tmp = $_SESSION['config']->idepartments; - - // In case of a valid back button create entry - if(isset($tmp[$base_back])){ - $tmp2 ['dn'] = convert_department_dn($base_back); - - // If empty always go to top - if(empty($tmp2['dn'])){ - $tmp2['dn']="/"; - } - $tmp2 ['description'][0] = _(".."); - $result[$tmp[$base_back]]=$tmp2; - } - if($this->DivListDepartment->SubSearch){ $res= get_list("(&(|(ou=$Regex)(description=$Regex))(objectClass=gosaDepartment))", $this->ui->subtreeACL, $base, array("ou", "description"), GL_SIZELIMIT | GL_SUBSEARCH); @@ -342,7 +328,6 @@ class departmentManagement extends plugin $this->ui->subtreeACL, $base, array("ou", "description"), GL_SIZELIMIT ); } - $this->departments= array(); foreach ($res as $key => $value){ /* Don't display base as entry on subsearch */ diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 88d4d41a5..f515337fc 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -715,7 +715,7 @@ class appgroup extends plugin for($i = 0 ; $i < ($cnt -1 ) ; $i++){ $bbk .= $tmp[$i]; } - $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,base64_encode($bbk),"..")),array("string"=>" ","attach"=>"style='border-right:0px;'"))); + $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,base64_encode($bbk),".. ["._("Back")."]")),array("string"=>" ","attach"=>"style='border-right:0px;'"))); } $this->GetSubdirs($this->curCatDir); -- 2.30.2