MDL-28387 logs: Log data when a user is deleted

This commit is contained in:
Ankit Agarwal
2012-03-02 13:18:32 +08:00
parent e356fb68fd
commit 43956b2c68
+3
View File
@@ -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.