|
|
|
@ -61,6 +61,7 @@ if (!empty($addresources)) { |
|
|
|
|
'content' => Security::remove_XSS(stripslashes($_POST['content'])), |
|
|
|
|
'id' => Security::remove_XSS($_POST['id']), |
|
|
|
|
'action' => Security::remove_XSS($_POST['action']), |
|
|
|
|
'add_announcement' => Security::remove_XSS($_POST['add_announcement']), |
|
|
|
|
'to' => Security::remove_XSS($_POST['selectedform']) |
|
|
|
|
); |
|
|
|
|
$_SESSION['formelements'] = $form_elements; |
|
|
|
@ -243,6 +244,10 @@ if (api_is_allowed_to_edit(false, true) OR |
|
|
|
|
$end = mktime(23, 59, 59, $end_m, $end_d, $end_y); |
|
|
|
|
$res = agenda_add_repeat_item($course_info, $id, $_POST['repeat_type'], $end, $_POST['selected_form'], $safe_file_comment); |
|
|
|
|
} |
|
|
|
|
if (isset($_POST['add_announcement'])) { |
|
|
|
|
$ann_id = store_agenda_item_as_announcement($id); |
|
|
|
|
AnnouncementManager::send_email($ann_id); |
|
|
|
|
} |
|
|
|
|
Display::display_confirmation_message(get_lang('AddSuccess')); |
|
|
|
|
} else { |
|
|
|
|
show_add_form(); |
|
|
|
|