From: cajus Date: Fri, 19 Oct 2007 12:33:28 +0000 (+0000) Subject: Added dhcp calls to hooks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d9e9bfde5f5dcbd7138d59a07a66646bcfeb223;p=gosa.git Added dhcp calls to hooks git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7601 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDHCP.inc b/plugins/admin/systems/class_servDHCP.inc index d5048eea9..7f03cb687 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -532,9 +532,15 @@ class servdhcp extends plugin if ($modify){ $ldap->modify($attrs); show_ldap_error($ldap->get_error(), _("Can't save DHCP object!")); + + /* Optionally execute a command after we're done */ + $this->handle_post_events("modify"); } else { $ldap->add($attrs); show_ldap_error($ldap->get_error(), _("Can't save DHCP object!")); + + /* Optionally execute a command after we're done */ + $this->handle_post_events("create"); } } }