Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -N -r14787 -r14879 --- branches/5.2.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 14787) +++ branches/5.2.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 14879) @@ -1,6 +1,6 @@ parseClasses($prefix); - $this->parseAgents($prefix); + $this->parseScheduledTasks($prefix); $this->parseHooks($prefix); $this->parseAggregatedTags($prefix); } @@ -457,19 +457,19 @@ } } - protected function parseAgents($prefix) + protected function parseScheduledTasks($prefix) { $config =& $this->configData[$prefix]; - if ( !isset($config['RegularEvents']) || !$config['RegularEvents'] ) { + if ( !isset($config['ScheduledTasks']) || !$config['ScheduledTasks'] ) { return ; } - $regular_events = $config['RegularEvents']; + $scheduled_tasks = $config['ScheduledTasks']; - foreach ($regular_events as $short_name => $regular_event_info) { - $event_status = array_key_exists('Status', $regular_event_info) ? $regular_event_info['Status'] : STATUS_ACTIVE; - $this->Application->delayUnitProcessing('registerAgent', Array ( $short_name, $config['Prefix'] . ':' . $regular_event_info['EventName'], $regular_event_info['RunInterval'], $regular_event_info['Type'], $event_status )); + foreach ($scheduled_tasks as $short_name => $scheduled_task_info) { + $event_status = array_key_exists('Status', $scheduled_task_info) ? $scheduled_task_info['Status'] : STATUS_ACTIVE; + $this->Application->delayUnitProcessing('registerScheduledTask', Array ( $short_name, $config['Prefix'] . ':' . $scheduled_task_info['EventName'], $scheduled_task_info['RunInterval'], $scheduled_task_info['Type'], $event_status )); } }