diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc
index 8c68cc421d4009eade7820eb09042bc1e95a6aa2..ae3ee7a5a16c028cb996f29cd5bf0049de1a90c3 100644 (file)
}
} else {
/* Errors found, show message */
- show_errors ($message);
+ msgDialog::displayChecks($message);
}
}
$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);
$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);
}
}
/* 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)){