mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -195,7 +195,6 @@ class enrol_self_plugin extends enrol_plugin {
|
|||
}
|
||||
|
||||
$this->enrol_user($instance, $USER->id, $instance->roleid, $timestart, $timeend);
|
||||
add_to_log($instance->courseid, 'course', 'enrol', '../enrol/users.php?id='.$instance->courseid, $instance->courseid); //TODO: There should be userid somewhere!
|
||||
|
||||
if ($instance->password and $instance->customint1 and $data->enrolpassword !== $instance->password) {
|
||||
// It must be a group enrolment, let's assign group too.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue