diff --git a/preferences.php b/preferences.php index 8bdfa92..83bf016 100644 --- a/preferences.php +++ b/preferences.php @@ -78,7 +78,7 @@ switch ($att->pageparams->action) { foreach ($acronym as $id => $v) { $att->update_status($id, $acronym[$id], $description[$id], $grade[$id], null); } - update_all_users_grades($att->id, $att->course, $att->context); + att_update_all_users_grades($att->id, $att->course, $att->context); break; } diff --git a/sessions.php b/sessions.php index e2dd833..473734a 100644 --- a/sessions.php +++ b/sessions.php @@ -72,7 +72,7 @@ switch ($att->pageparams->action) { if (isset($confirm)) { $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')); } @@ -99,7 +99,7 @@ switch ($att->pageparams->action) { $sessionsids = explode('_', $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')); }