mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-15043
No need to use $USER in the log write call, it's the default
This commit is contained in:
parent
ac1dc9845a
commit
e60d5b2676
@ -2521,7 +2521,7 @@ function delete_role($roleid) {
|
||||
}
|
||||
|
||||
if ($success) {
|
||||
add_to_log(SITEID, 'role', 'delete', 'admin/roles/action=delete&roleid='.$roleid, $rolename, '', $USER->id);
|
||||
add_to_log(SITEID, 'role', 'delete', 'admin/roles/action=delete&roleid='.$roleid, $rolename, '');
|
||||
}
|
||||
|
||||
return $success;
|
||||
@ -5474,4 +5474,4 @@ function role_cap_duplicate($sourcerole, $targetrole) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user