X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fogroups%2Fclass_mailogroup.inc;h=b13799aaed8f37c836f2239197ba8e6156dd6de9;hb=78fd52f682986d25fb95c171757d58384f7f58f8;hp=cfed78cf46c0632eb548182fc029335dbf0fac43;hpb=9f9f1f666de9c2cde21f2e675e2034e98fc86344;p=gosa.git diff --git a/plugins/admin/ogroups/class_mailogroup.inc b/plugins/admin/ogroups/class_mailogroup.inc index cfed78cf4..b13799aae 100644 --- a/plugins/admin/ogroups/class_mailogroup.inc +++ b/plugins/admin/ogroups/class_mailogroup.inc @@ -60,7 +60,8 @@ class mailogroup extends plugin /* Check formular input */ function check() { - $message= array(); + /* Call common method to give check the hook */ + $message= plugin::check(); if ($this->is_account){ $ldap= $this->config->get_ldap_link(); @@ -92,14 +93,14 @@ class mailogroup extends plugin /* Save data to LDAP */ $ldap->cd($this->dn); $this->cleanup(); -$ldap->modify ($this->attrs); + $ldap->modify ($this->attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), _("Saving mail objectgroup settings failed")); /* Optionally execute a command after we're done */ if ($this->initially_was_account == $this->is_account){ if ($this->is_modified){ - $this->handle_post_events("mofify"); + $this->handle_post_events("modify"); } } else { $this->handle_post_events("add"); @@ -125,9 +126,9 @@ $ldap->modify ($this->attrs); $this->attributes, "Save"); $ldap->cd($this->dn); $this->cleanup(); -$ldap->modify ($this->attrs); + $ldap->modify ($this->attrs); - show_ldap_error($ldap->get_error()); + show_ldap_error($ldap->get_error(), _("Removing mail objectgroup settings failed")); }