Code

Kiosk error only once
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Sep 2007 11:36:38 +0000 (11:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Sep 2007 11:36:38 +0000 (11:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7239 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/class_kioskManagementDialog.inc

index 64aabc4dfc93cf1ad55595840347c43271fffa93..8f3d00bf715554985b6aef56063f5dc2747a9a55 100644 (file)
@@ -53,6 +53,7 @@ class environment extends plugin
   var $gotoKioskProfile   = "none";     // The selected Kiosk Profile
   var $gotoKioskProfiles  = array();// All available Kiosk profiles
   var $newKioskProfiles   = array();
+  var $kioskProfileList   = array(); // Displayed List of Profiles
 
   /* Hotplug Devices */
   var $gotoHotplugDevice  = array();     // Selected hotplug
@@ -236,6 +237,10 @@ class environment extends plugin
     $this->gotoShareSelections= $config->getShareList(true);
     $this->gotoAvailableShares= $config->getShareList(false);  
 
+    $tmp = new kioskManagementDialog($this->config,$this->dn);
+    $list = $tmp->getKioskProfiles($this->newKioskProfiles);
+    $list['none']=_("None");
+    $this->kioskProfileList = array_reverse($list);
   }
 
 
@@ -503,12 +508,8 @@ class environment extends plugin
       $this->dialog->acl = $this->acl;
       $this->is_dialog = true;
     }
-    $tmp = new kioskManagementDialog($this->config,$this->dn);
-    $list = $tmp->getKioskProfiles($this->newKioskProfiles);
-    $list['none']=_("None");
-    $list = array_reverse($list);
-    $smarty->assign("gotoKioskProfiles",$list);
-    $smarty->assign("gotoKioskProfileKeys",array_flip($list));
+    $smarty->assign("gotoKioskProfiles",$this->kioskProfileList);
+    $smarty->assign("gotoKioskProfileKeys",array_flip($this->kioskProfileList));
 
     /* Logonscript Management
      * Get available LogonScripts (possibly grey out (or mark) these script that are defined for the group) 
index f6d2295cf593c335bf7bb3715756ead56346c42a..1c8b3fc7e8edb16b14196065d2837f377fedf85d 100644 (file)
@@ -86,7 +86,7 @@ class kioskManagementDialog extends plugin
               print_red(sprintf(_("Can't delete '%s'. Error was: permission denied."), $filename));
             }
             if(!file_exists($filename)){
-              print_red(sprintf(_("Can't delete '%s'. Errow was: file doesn't exist."), $filename));
+              print_red(sprintf(_("Can't delete '%s'. Error was: file doesn't exist."), $filename));
             }
           }
         }
@@ -105,7 +105,7 @@ class kioskManagementDialog extends plugin
           print_red(sprintf(_("Can't delete '%s'. Error was: permission denied."), $filename));
         }
         if(!file_exists($filename)){
-          print_red(sprintf(_("Can't delete '%s'. Errow was: file doesn't exist."), $filename));
+          print_red(sprintf(_("Can't delete '%s'. Error was: file doesn't exist."), $filename));
         }
       
       }