Code

Annouce kiosk error message once, when opening a user.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Sep 2007 11:35:49 +0000 (11:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Sep 2007 11:35:49 +0000 (11:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7238 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 455b3b588d730bc71e70766ae273c7a9956c37e2..7a71c8d93c0486576a4e0f3b46180afb9853f68e 100644 (file)
@@ -47,6 +47,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
@@ -210,6 +211,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);
   }
 
 
@@ -462,12 +467,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 635c39fcd919afcae169fa09b414b21ecce72991..c3e88aca47279a8567b23a9b24b65a75bef7292a 100644 (file)
@@ -87,7 +87,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));
             }
           }
         }
@@ -106,7 +106,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));
         }
       
       }