@@ 614-624 (lines=11) @@ | ||
611 | } |
|
612 | } |
|
613 | ||
614 | if ($event->save()) { |
|
615 | error_log('save'); |
|
616 | if (!$event_guid && $event->web_conference) { |
|
617 | if (!event_calendar_create_bbb_conf($event)) { |
|
618 | register_error(elgg_echo('event_calendar:conference_create_error')); |
|
619 | } |
|
620 | } |
|
621 | if ($group_guid && (elgg_get_plugin_setting('autogroup', 'event_calendar') == 'yes')) { |
|
622 | event_calendar_add_personal_events_from_group($event->guid, $group_guid); |
|
623 | } |
|
624 | } |
|
625 | ||
626 | $event_guid = $event->guid; |
|
627 | $event_calendar_autopersonal = elgg_get_plugin_setting('autopersonal', 'event_calendar'); |
@@ 238-247 (lines=10) @@ | ||
235 | } |
|
236 | } |
|
237 | ||
238 | if ($event->save()) { |
|
239 | if (!$event_guid && $event->web_conference) { |
|
240 | if (!event_calendar_create_bbb_conf($event)) { |
|
241 | register_error(elgg_echo('event_calendar:conference_create_error')); |
|
242 | } |
|
243 | } |
|
244 | if ($group_guid && (elgg_get_plugin_setting('autogroup', 'event_calendar') == 'yes')) { |
|
245 | event_calendar_add_personal_events_from_group($event->guid, $group_guid); |
|
246 | } |
|
247 | } |
|
248 | return $event; |
|
249 | } |
|
250 |