Code

Upps
[gosa.git] / plugins / admin / fai / main.inc
index 36d3c502100f1f56345efebf1ef95e3f78a54dce..ae19b7451f9c023646aa2710cad4a681fa525778 100644 (file)
@@ -31,24 +31,22 @@ if ($remove_lock){
                $_SESSION['FAI']= new faiManagement($config, $ui);
        }
        $FAI= $_SESSION['FAI'];
+       $FAI->save_object();
        $output= $FAI->execute();
 
-       /* Page header*/
-       if (isset($_SESSION['objectinfo'])){
-               $display= print_header(get_template_path('images/fai.png'), _("FAI management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".$_SESSION['objectinfo']);
-       } else {
-               $display= print_header(get_template_path('images/fai.png'), _("FAI management"));
-       }
-
        /* Reset requested? */
        if (isset($_GET['reset']) && $_GET['reset'] == 1){
                del_lock ($ui->dn);
                sess_del ('FAI');
        }
-
-       /* Show and save dialog */
-       $FAI->save_object();
+       /* Page header*/
+       if (isset($_SESSION['objectinfo'])){
+               $display= print_header(get_template_path('images/fai.png'), _("Fully Automatic Installation"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".@LDAP::fix($_SESSION['objectinfo']));
+       } else {
+               $display= print_header(get_template_path('images/fai.png'), _("Fully Automatic Installation"));
+       }
        $display.= $output;
+
        $_SESSION['FAI']= $FAI;
 }