From 64bc2dfdf1d027732152163ca5b16b078cc69ba9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Mar 2010 08:38:06 +0000 Subject: [PATCH] unified post event handling! git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15875 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/connectivity/class_intranetAccount.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc b/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc index db0eef261..f3a8b77d6 100644 --- a/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc +++ b/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc @@ -127,7 +127,7 @@ class intranetAccount extends plugin } /* Optionally execute a command after we're done */ - $this->postremove(array("uid"=>$this->uid)); + $this->handle_post_events('remove'); } } @@ -185,16 +185,16 @@ class intranetAccount extends plugin /* Log last action */ if($this->initially_was_account){ new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + $this->handle_post_events('modify'); }else{ new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + $this->handle_post_events('add'); } if (!$ldap->success()){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class())); } - /* Optionally execute a command after we're done */ - $this->postcreate(array("uid" => $this->uid)); } -- 2.30.2