|
|
@ -61,7 +61,7 @@ if (get_config('attendance', 'enablecalendar')) { |
|
|
|
} else { |
|
|
|
if ($DB->record_exists('attendance_sessions', array('caleventid' => 0, 'calendarevent' => 1))) { |
|
|
|
$createurl = new moodle_url('/mod/attendance/resetcalendar.php', array('action' => 'create')); |
|
|
|
$returnurl = new moodle_url('/admin/settings.php', array('section' => 'modsettingattendance')); |
|
|
|
$returnurl = new moodle_url("/{$CFG->admin}/settings.php", array('section' => 'modsettingattendance')); |
|
|
|
|
|
|
|
echo $OUTPUT->confirm(get_string('resetcaledarcreate', 'mod_attendance'), $createurl, $returnurl); |
|
|
|
} else { |
|
|
@ -79,7 +79,7 @@ if (get_config('attendance', 'enablecalendar')) { |
|
|
|
// Check to see if there are any events that need to be deleted. |
|
|
|
if ($DB->record_exists_select('attendance_sessions', 'caleventid > 0')) { |
|
|
|
$deleteurl = new moodle_url('/mod/attendance/resetcalendar.php', array('action' => 'delete')); |
|
|
|
$returnurl = new moodle_url('/admin/settings.php', array('section' => 'modsettingattendance')); |
|
|
|
$returnurl = new moodle_url("/{$CFG->admin}/settings.php", array('section' => 'modsettingattendance')); |
|
|
|
|
|
|
|
echo $OUTPUT->confirm(get_string('resetcaledardelete', 'mod_attendance'), $deleteurl, $returnurl); |
|
|
|
} else { |
|
|
|