summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10e9e3d)
raw | patch | inline | side by side (parent: 10e9e3d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 May 2006 05:14:38 +0000 (05:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 May 2006 05:14:38 +0000 (05:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3552 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_environment.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index c4fea2011e7c83b57bf3fba79c395c8179eb1277..be9e18f04a991f990669166c41b71c211d2e471d 100644 (file)
$this->dialog=NULL;
$this->is_dialog = false;
}
- $tmp = new kioskManagementDialog($this->config,$this->dn);
- $list = $tmp->getKioskProfiles($this->newKioskProfiles);
-
- $list['none']=_("None");
-
- $list = array_reverse($list);
-
- if(!isset($list[$this->gotoKioskProfile])){
- print_red(sprintf(_("The selected kiosk profile '%s' is no longer available, setting current profile to 'none'."),$this->gotoKioskProfile));
- $this->gotoKioskProfile = 'none';
- }
/* Reassign help class */
$_SESSION['current_class_for_help'] = get_class($this);
$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));
/* General behavior */
if((isset($this->dialog))&&($this->dialog!=NULL)&&(!empty($this->dialog))){
$this->dialog->save_object();
- return ($this->dialog->execute());
+ $disp =$this->dialog->execute();
+
+ $tmp = new kioskManagementDialog($this->config,$this->dn);
+ $list = $tmp->getKioskProfiles($this->newKioskProfiles);
+ $list['none']=_("None");
+ $list = array_reverse($list);
+ if(!isset($list[$this->gotoKioskProfile])){
+ print_red(sprintf(_("The selected kiosk profile '%s' is no longer available, setting current profile to 'none'."),$this->gotoKioskProfile));
+ $this->gotoKioskProfile = 'none';
+ }
+ return($disp);
}
if($this->acl != "#none#"){
$smarty->assign("useProfileACL","");