X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fdfs%2Faddons%2Fgodfs%2Fclass_dfsManagment.inc;h=a73d1749fc239fb31723ca3c9ef2528f99c2f403;hb=fbf8e4356f625423e3ccfcb0c6520942726a44e1;hp=28c6e924a23ae277f1ad019d298e96520dbe81be;hpb=dc32a939b95e215f086afb7bb19104a31d969950;p=gosa.git diff --git a/gosa-plugins/dfs/addons/godfs/class_dfsManagment.inc b/gosa-plugins/dfs/addons/godfs/class_dfsManagment.inc index 28c6e924a..a73d1749f 100644 --- a/gosa-plugins/dfs/addons/godfs/class_dfsManagment.inc +++ b/gosa-plugins/dfs/addons/godfs/class_dfsManagment.inc @@ -5,7 +5,7 @@ from LDAP to local variables and prepare the save to ldap routine for you. */ class dfsManagment extends plugin { /* Definitions */ - var $plHeadline = "DFS Managment"; + var $plHeadline = "DFS Management"; var $plDescription = "This does something"; /* These contain attributes to be loaded. We're not doing an LDAP plugin currently, so we don't @@ -114,7 +114,7 @@ class dfsManagment extends plugin { # write to ldap $this->dfstab->save(); } else { - show_errors($message); + msg_dialog::displayChecks($message); } } @@ -144,7 +144,9 @@ class dfsManagment extends plugin { $ldap = $this->config->get_ldap_link(); $ldap->cd($this->basedn); $ldap->rmdir($this->basedn); - show_ldap_error($ldap->get_error(), sprintf(_("Removing of DFS share with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->basedn, LDAP_DEL, get_class())); + } del_lock (session::get('objectinfo')); unset ($this->dfstab); @@ -164,7 +166,7 @@ class dfsManagment extends plugin { if ($ldap->count() == 0) { $message[] = _("No DFS entries found"); - show_errors ($message); + msg_dialog::displayChecks($message); } else { $have_tree= false; while ($dfs = $ldap->fetch()) { @@ -206,8 +208,8 @@ class dfsManagment extends plugin { } $listhead = "
". - "  ". - "  ". + "  ". + "  ". "  ". "  ". _("Base")." ". @@ -242,7 +244,7 @@ class dfsManagment extends plugin { $display .= " \n"; $display .= " \n"; $display .= "  \n"; - $display .= " \n"; + $display .= " \n"; $display .= " \n"; $display .= " \n"; $display .= " \n";