Code

<h2> => </h3>
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_SelectDeviceType.inc
index 09e41147c8c76767cd44794b4b7e5b07eeef9e7e..9e1c10975b0b2860c8b348cd9bb23f898e3279d8 100644 (file)
@@ -11,7 +11,7 @@ class SelectDeviceType extends plugin
   var $SystemTypes       = array();
 
   var $ObjectGroup    = "none";
-  var $SystemType        = "workstation";
+  var $SystemType        = "gotoWorkstation";
 
   var $dn;
 
@@ -19,11 +19,10 @@ class SelectDeviceType extends plugin
   {
     if(!is_array($dn)){
       $this->dns = array($dn);
-      plugin::plugin ($config, NULL);
     }else{
       $this->dns = $dn;
-      plugin::plugin ($config, $dn);
     }
+    plugin::plugin ($config, NULL);
 
     /* Get object groups */
     $ldap = $this->config->get_ldap_link();
@@ -36,9 +35,9 @@ class SelectDeviceType extends plugin
     asort($tmp, SORT_LOCALE_STRING);
     $this->ObjectGroups= $tmp;
 
-    $this->SystemTypes =array("workstation"=>_("Workstation"), "terminal"=>_("Terminal"), "server"=>_("Server"));
+    $this->SystemTypes =array("gotoWorkstation"=>_("Workstation"), "gotoTerminal"=>_("Terminal"), "goServer"=>_("Server"));
     if(class_available("opsi")){
-    $this->SystemTypes["opsi_client"]= _("Windows workstation");
+      $this->SystemTypes["FAKE_OC_OpsiHost"]= _("Windows workstation");
     }
   }
 
@@ -61,7 +60,7 @@ class SelectDeviceType extends plugin
     $smarty= get_smarty();
     $display= "";
 
-    $map = array("workstation" => "W","terminal" => "T","server" => "S", "opsi_client" => "O");
+    $map = array("gotoWorkstation" => "W","gotoTerminal" => "T","goServer" => "S", "FAKE_OC_OpsiHost" => "O");
     $smarty->assign("dns_cnt" , count($this->dns));
     $smarty->assign("ogroups", $tmp[$map[$this->SystemType]]);
     $smarty->assign("SystemTypes"     ,$this->SystemTypes);