Code

Updated environemnt.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 09:17:21 +0000 (09:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 09:17:21 +0000 (09:17 +0000)
-Kiosk profiles are detected correctly now

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9053 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_environment.inc

index fe0be1d0189676b5814ecc3a5a10bf11e00b7fde..01df57a8bc608be848ac807003cfde2a9cf3ebec 100644 (file)
@@ -243,8 +243,6 @@ class environment extends plugin
     $this->gotoAvailableShares= $config->getShareList(false);  
 
     $this->update_kiosk_profiles();
-  
-    $this->gotoKioskProfile= preg_replace("/^.*\//i","",$this->gotoKioskProfile);
   }
 
 
@@ -258,7 +256,7 @@ class environment extends plugin
     $cnt = 0;
     while($attrs = $ldap->fetch()){
       for($i = 0 ; $i < $attrs['gotoKioskProfile']['count'] ; $i ++){
-        $name = preg_replace("/^.*kiosk\//","",$attrs['gotoKioskProfile'][$i]);
+        $name = preg_replace("/^.*\//","",$attrs['gotoKioskProfile'][$i]);
         $tmp1[$attrs['cn'][0]][] = $name;
       }
       $tmp2[$attrs['cn'][0]]= $attrs['cn'][0];
@@ -280,6 +278,7 @@ class environment extends plugin
       $this->gotoKioskProfile_Server = key($this->gotoKioskProfiles['SERVERS']);
       $error = true;
     }
+  
     if(!in_array($this->gotoKioskProfile_Profile, $this->gotoKioskProfiles['BY_SERVER'][$this->gotoKioskProfile_Server])){
       $this->gotoKioskProfile_Profile = $this->gotoKioskProfiles['BY_SERVER'][$this->gotoKioskProfile_Server][0];
       $error = true;