Code

Template update .
[gosa.git] / gosa-plugins / gofax / gofax / blocklists / class_blocklistManagement.inc
index 8c68cc421d4009eade7820eb09042bc1e95a6aa2..ae3ee7a5a16c028cb996f29cd5bf0049de1a90c3 100644 (file)
@@ -150,7 +150,7 @@ class blocklist extends plugin
         }
       } else {
         /* Errors found, show message */
-        show_errors ($message);
+        msgDialog::displayChecks($message);
       }
     }
 
@@ -244,7 +244,7 @@ class blocklist extends plugin
           $this->dialog->delete();
           $this->dialog = NULL;
         } else {
-          print_red (sprintf(_("You are not allowed to delete the blocklist '%s'!"),$dn));
+          msg_dialog::display(_("Permission error"), sprintf(_("You have not permission to delete '%s'!"), $dn), ERROR_DIALOG);
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -302,7 +302,7 @@ class blocklist extends plugin
         $this->dialog = NULL;
         del_lock ($this->dn);
       } else {
-        print_red (_("You have no permission to remove this blocklist."));
+        msg_dialog::display(_("Permission error"), _("You have not permission to delete this entry!"), ERROR_DIALOG);
       }
     }
 
@@ -452,12 +452,9 @@ class blocklist extends plugin
     /* Return C&P dialog */
     if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
 
-      /* Load entry from queue and set base */
-      $this->CopyPasteHandler->load_entry_from_queue();
-      $this->CopyPasteHandler->SetVar("base",$this->DivListBlocklist->selectedBase);
-
       /* Get dialog */
       $data = $this->CopyPasteHandler->execute();
+      $this->CopyPasteHandler->SetVar("base",$this->DivListBlocklist->selectedBase);
 
       /* Return dialog data */
       if(!empty($data)){