diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc
index e1499259c59e607db9ea7b5af1f398f65cb4d08c..cfe2f55e12fd5728f53995f28c69b842f8f9433c 100644 (file)
class blocklist extends plugin
{
/* Definitions */
- var $plHeadline= "FAX Blocklists";
+ var $plHeadline= "FAX blocklists";
var $plDescription= "This does something";
var $blocklists = array();
}
} else {
/* Errors found, show message */
- show_errors ($message);
+ msg_dialog::displayChecks($message);
}
}
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names[] = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[]=@LDAP::fix( $dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("info", sprintf(_("You're about to delete the following blocklists(s) %s"), @LDAP::fix($dns_names)));
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("blocklist")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
$this->dialog->delete();
$this->dialog = NULL;
} else {
- msg_dialog::display(_("Permission error"), sprintf(_("You have not permission to delete '%s'!"), $dn), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), msgPool::permDelete($dn), ERROR_DIALOG);
}
/* Remove lock file after successfull deletion */
del_lock ($dn);
// Lock this dn for editing
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the blocklist '%s'."), $this->dn));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("blocklist")));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
$this->dialog = NULL;
del_lock ($this->dn);
} else {
- msg_dialog::display(_("Permission error"), _("You have not permission to delete this entry!"), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG);
}
}
function save_object()
{
$this->DivListBlocklist->save_object();
+ if(is_object($this->CopyPasteHandler)){
+ $this->CopyPasteHandler->save_object();
+ }
}
/* 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)){