mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-40909 core_enrol: removed 'unenrol' add_to_log calls
Before each of these calls a call to unenrol_user() is made, which triggers the event 'user_enrolment_deleted'. Nothing more is needed.
This commit is contained in:
parent
50ac4392f3
commit
6324517209
6 changed files with 52 additions and 4 deletions
|
@ -49,7 +49,7 @@ $PAGE->set_title($plugin->get_instance_name($instance));
|
|||
|
||||
if ($confirm and confirm_sesskey()) {
|
||||
$plugin->unenrol_user($instance, $USER->id);
|
||||
add_to_log($course->id, 'course', 'unenrol', '../enrol/users.php?id='.$course->id, $course->id); //there should be userid somewhere!
|
||||
|
||||
redirect(new moodle_url('/index.php'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue