From: cajus Date: Wed, 16 Apr 2008 13:11:44 +0000 (+0000) Subject: Activated original code X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e1befff4815e9cda7545e2f4d8d1b4af0b47939;p=gosa.git Activated original code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10509 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 3f42e703f..785719501 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -964,15 +964,14 @@ class workstartup extends plugin /* Trigger event for all member objects */ -print_a ($macs); -# foreach($macs as $mac){ -# $tmp = new $evt['CLASS_NAME']($this->config); -# $tmp->set_type(TRIGGERED_EVENT); -# $tmp->add_targets(array($mac)); -# if(!$o_queue->append($tmp)){ -# msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); -# } -# } + foreach($macs as $mac){ + $tmp = new $evt['CLASS_NAME']($this->config); + $tmp->set_type(TRIGGERED_EVENT); + $tmp->add_targets(array($mac)); + if(!$o_queue->append($tmp)){ + msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); + } + } } } }