|
@ -72,7 +72,7 @@ switch ($att->pageparams->action) { |
|
|
|
|
|
|
|
|
if (isset($confirm)) { |
|
|
if (isset($confirm)) { |
|
|
$att->delete_sessions(array($sessionid)); |
|
|
$att->delete_sessions(array($sessionid)); |
|
|
update_all_users_grades($att->id, $att->course, $att->context); |
|
|
att_update_all_users_grades($att->id, $att->course, $att->context); |
|
|
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); |
|
|
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -99,7 +99,7 @@ switch ($att->pageparams->action) { |
|
|
$sessionsids = explode('_', $sessionsids); |
|
|
$sessionsids = explode('_', $sessionsids); |
|
|
|
|
|
|
|
|
$att->delete_sessions($sessionsids); |
|
|
$att->delete_sessions($sessionsids); |
|
|
update_all_users_grades($att->id, $att->course, $att->context); |
|
|
att_update_all_users_grades($att->id, $att->course, $att->context); |
|
|
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); |
|
|
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|