Code

New bunch of value changes
[gosa.git] / gosa-plugins / ldapmanager / addons / ldapmanager / class_csvimport.inc
index bd84fa82e5ba6ad767291fa6f1330a7419e267b6..a4d8738ced737adccb4979ac1c8c6fc7842d69cc 100644 (file)
@@ -102,7 +102,7 @@ class csvimport extends plugin
     $acl = $this->ui->get_permissions($this->config->current['BASE'],"all/all");
     if(!preg_match("/w/",$acl)){
       if(isset($_POST['userfile']) || isset($_POST['sorted']) || isset($_POST['fileup'])){
-       msg_dialog::display(_("Permission error"), _("You've no permission to import CSV files."), ERROR_DIALOG);
+       msg_dialog::display(_("Permission error"), _("You've no permission to import CSV files."), ERROR_DIALOG);
       }
       return ($smarty->fetch (get_template_path('contentcsv.tpl', TRUE)));
     }
@@ -209,7 +209,7 @@ class csvimport extends plugin
 
             /* Insert in the LDAP tree */
             if(count($this->usertab->check())) {
-              show_errors($this->usertab->check());
+              msg_dialog::displayChecks($this->usertab->check());
               $this->csvinfo['sorteddata'][$i]['status']="<b>"._("failed")."</b>";
               $failing = $i+1;
               break;