Code

Cache results from get_module_departments.
[gosa.git] / setup / class_setupStep_Feedback.inc
index dc273e64fd8ce51981d11377389c31442a505db7..fbcfb4c97bfeb4d4be04e70f0d9e5d973ab05ac6 100644 (file)
@@ -28,8 +28,8 @@ class Step_Feedback  extends setup_step
   var $organization       = "";
   var $eMail              = "";
   var $name               = "";
-  var $subscribe          = TRUE;
-  var $use_gosa_announce  = TRUE;
+  var $subscribe          = FALSE;
+  var $use_gosa_announce  = FALSE;
 
   var $feedback_url         = "http://oss.gonicus.de/gosa-feedback/";
   var $get_started          = TRUE;
@@ -98,7 +98,7 @@ class Step_Feedback  extends setup_step
     $this->features_used['asterisk']    = array("USED" => isset($oc['goFonAccount']), 
                                                 "NAME" => _("Asterisk administration"));
     $this->features_used['inventory']   = array("USED" => isset($oc['glpiAccount']) , 
-                                                "NAME" => _("System invetory"));
+                                                "NAME" => _("System inventory"));
     $this->features_used['system']      = array("USED" => FALSE , 
                                                 "NAME" => _("System-/Configmanagement"));
     $this->features_used['addressbook'] = array("USED" => FALSE , 
@@ -178,6 +178,11 @@ class Step_Feedback  extends setup_step
     if(!is_email($this->eMail) || empty($this->eMail)){
       $msgs[] = _("Please specify a valid email address.");
     }
+
+    if(!$this->subscribe && !$this->use_gosa_announce){
+      $msgs[] = _("You should have enabled at least one option, to subscribe or send your feedback.");
+    }
+
     return($msgs);
   }
   
@@ -234,7 +239,7 @@ class Step_Feedback  extends setup_step
       }else{
         $str .= "\nGet started: FALSE";
       }
-      $str .= "\nProblems : ".base64_encode($this->problems_encountered);
+      $str .= "\nProblems : ".($this->problems_encountered);
 
       if($this->first_use){
         $str .= "\nFirst use: TRUE";
@@ -248,7 +253,7 @@ class Step_Feedback  extends setup_step
       $str .="\nPHP_Version: ".$this->php_version;
       $str .="\nLDAP Server: ".$this->ldap_server;
       $str .="\nObject count: ".$this->object_count;
-      $str .="\nMissing features: ".base64_encode($this->want_to_see_next);
+      $str .="\nMissing features: ".($this->want_to_see_next);
     }
 
     $str .= "\n\nFeatures used";