mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue