mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-40909 core_enrol: removed 'enrol' add_to_log calls
Before each of these calls a call to enrol_user() is made, which triggers the event 'user_enrolment_created'. Nothing more is needed.
This commit is contained in:
parent
6324517209
commit
f1f4f4fd7b
4 changed files with 12 additions and 2 deletions
|
@ -123,7 +123,6 @@ if ($canenrol && optional_param('add', false, PARAM_BOOL) && confirm_sesskey())
|
|||
$timeend = $timestart + $extendperiod;
|
||||
}
|
||||
$enrol_manual->enrol_user($instance, $adduser->id, $roleid, $timestart, $timeend);
|
||||
add_to_log($course->id, 'course', 'enrol', '../enrol/users.php?id='.$course->id, $course->id); //there should be userid somewhere!
|
||||
}
|
||||
|
||||
$potentialuserselector->invalidate_selected_users();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue