|
@ -122,7 +122,7 @@ switch ($att->pageparams->action) { |
|
|
|
|
|
|
|
|
$sessinfo = $att->get_session_info($sessionid); |
|
|
$sessinfo = $att->get_session_info($sessionid); |
|
|
|
|
|
|
|
|
$message = get_string('deletecheckfull', '', get_string('session', 'attendance')); |
|
|
$message = get_string('deletecheckfull', 'attendance', get_string('session', 'attendance')); |
|
|
$message .= str_repeat(html_writer::empty_tag('br'), 2); |
|
|
$message .= str_repeat(html_writer::empty_tag('br'), 2); |
|
|
$message .= userdate($sessinfo->sessdate, get_string('strftimedmyhm', 'attendance')); |
|
|
$message .= userdate($sessinfo->sessdate, get_string('strftimedmyhm', 'attendance')); |
|
|
$message .= html_writer::empty_tag('br'); |
|
|
$message .= html_writer::empty_tag('br'); |
|
@ -137,7 +137,7 @@ switch ($att->pageparams->action) { |
|
|
exit; |
|
|
exit; |
|
|
case mod_attendance_sessions_page_params::ACTION_DELETE_SELECTED: |
|
|
case mod_attendance_sessions_page_params::ACTION_DELETE_SELECTED: |
|
|
$confirm = optional_param('confirm', null, PARAM_INT); |
|
|
$confirm = optional_param('confirm', null, PARAM_INT); |
|
|
$message = get_string('deletecheckfull', '', get_string('session', 'attendance')); |
|
|
$message = get_string('deletecheckfull', 'attendance', get_string('sessions', 'attendance')); |
|
|
|
|
|
|
|
|
if (isset($confirm) && confirm_sesskey()) { |
|
|
if (isset($confirm) && confirm_sesskey()) { |
|
|
$sessionsids = required_param('sessionsids', PARAM_ALPHANUMEXT); |
|
|
$sessionsids = required_param('sessionsids', PARAM_ALPHANUMEXT); |
|
|