Merge branch 'MDL-28387-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE
This commit is contained in:
@@ -3807,6 +3807,9 @@ function delete_user($user) {
|
||||
$updateuser->timemodified = time();
|
||||
|
||||
$DB->update_record('user', $updateuser);
|
||||
// Add this action to log
|
||||
add_to_log(SITEID, 'user', 'delete', "view.php?id=$user->id", $user->firstname.' '.$user->lastname);
|
||||
|
||||
|
||||
// We will update the user's timemodified, as it will be passed to the user_deleted event, which
|
||||
// should know about this updated property persisted to the user's table.
|
||||
|
||||
Reference in New Issue
Block a user