From 8705c266ef95e3a1a99cd2eaf5bccb904c7a2296 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jun 2006 11:21:31 +0000 Subject: [PATCH] Fixed error msgs fro addons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3989 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/addressbook/class_addressbook.inc | 4 ++-- plugins/addons/godfs/class_dfsManagment.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc index 615a5bbfb..9302a187a 100644 --- a/plugins/addons/addressbook/class_addressbook.inc +++ b/plugins/addons/addressbook/class_addressbook.inc @@ -177,7 +177,7 @@ class addressbook extends plugin /* Delete request is permitted, perform LDAP action */ $ldap= $this->config->get_ldap_link(); $ldap->rmdir ($this->dn); - show_ldap_error($ldap->get_error(), _("Removing addressbook entry failed")); + show_ldap_error($ldap->get_error(), sprintf(_("Removing of addressbook entry '%s' failed."),$this->dn)); gosa_log ("Address book object'".$this->dn."' has been removed"); } else { @@ -647,7 +647,7 @@ class addressbook extends plugin $ldap->cd ($this->dn); $this->cleanup(); $ldap->$mode ($this->attrs); - if (show_ldap_error($ldap->get_error(), _("Saving addressbook entry failed"))){ + if (show_ldap_error($ldap->get_error(), sprintf(_("Removing of addressbook entry '%s' failed."),$this->dn))){ return (1); } } diff --git a/plugins/addons/godfs/class_dfsManagment.inc b/plugins/addons/godfs/class_dfsManagment.inc index 0d381a1c1..0ad7ee431 100644 --- a/plugins/addons/godfs/class_dfsManagment.inc +++ b/plugins/addons/godfs/class_dfsManagment.inc @@ -148,7 +148,7 @@ class dfsManagment extends plugin { $ldap = $this->config->get_ldap_link(); $ldap->cd($this->basedn); $ldap->rmdir($this->basedn); - show_ldap_error($ldap->get_error(), _("Removing DFS share failed")); + show_ldap_error($ldap->get_error(), sprintf(_("Removing of DFS share with dn '%s' failed."),$this->dn)); del_lock ($_SESSION['objectinfo']); unset ($this->dfstab); -- 2.30.2