summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2c9444)
raw | patch | inline | side by side (parent: f2c9444)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 13:23:31 +0000 (13:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 13:23:31 +0000 (13:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9313 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_servGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc
index c42b16683468c766cbc695b86fb4a27df93e4a2b..4b6c8d8c656309c3c592380071f5f1bcbaa603c2 100644 (file)
$action = $mapEvent[$action];
}
+
/* Check if we have an DaemonEvent for this action */
- if(class_available("DaemonEvent_".$action)){
- $events = DaemonEvent::get_event_types(SYSTEM_EVENT);
- if(isset($events['BY_CLASS']["DaemonEvent_".$action])){
- $evt = $events['BY_CLASS']["DaemonEvent_".$action];
+ if(class_available("DaemonEvent")){
+ $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
+ if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
+ $evt = $events['TRIGGERED']["DaemonEvent_".$action];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->add_targets(array($this->netConfigDNS->macAddress));
$tmp->set_type(TRIGGERED_EVENT);
*/
$events = DaemonEvent::get_event_types(SYSTEM_EVENT);
$o_queue = new gosaSupportDaemon();
- if(isset($events['BY_CLASS']['DaemonEvent_installation_activation'])){
- $evt = $events['BY_CLASS']['DaemonEvent_installation_activation'];
+ if(isset($events['TRIGGERED']['DaemonEvent_installation_activation'])){
+ $evt = $events['TRIGGERED']['DaemonEvent_installation_activation'];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->set_type(TRIGGERED_EVENT);
$tmp->add_targets(array($this->netConfigDNS->macAddress));