Code

Fixed error msgs fro addons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jun 2006 11:21:31 +0000 (11:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jun 2006 11:21:31 +0000 (11:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3989 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc
plugins/addons/godfs/class_dfsManagment.inc

index 615a5bbfb0589ed0a030c193c5d98ea2fa3d5abe..9302a187a2cb1db559aaef7f80033a7d2edb6f3b 100644 (file)
@@ -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);
                }
        }
index 0d381a1c115fdfe8087e55035cce5c826bd30c20..0ad7ee43104d55fd1cf70069c94d1fcb25fc9a16 100644 (file)
@@ -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);