Code

Removed unused/not working code.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 06:47:19 +0000 (06:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 06:47:19 +0000 (06:47 +0000)
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

plugins/admin/departments/class_departmentManagement.inc
plugins/admin/groups/class_groupApplication.inc

index 98f0cb25355da10855e98a49deb012630b897cf9..5c715a2c482d0a3550f7ae5d2cd1cb2e12db1c13 100644 (file)
@@ -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 */
index 88d4d41a56fbf50d11643c238af8bd4fedddac1e..f515337fcdfc47168947e39e4e91bcddc2a91def 100644 (file)
@@ -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"=>"&nbsp;","attach"=>"style='border-right:0px;'")));
+      $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,base64_encode($bbk),".. ["._("Back")."]")),array("string"=>"&nbsp;","attach"=>"style='border-right:0px;'")));
     }
 
     $this->GetSubdirs($this->curCatDir);