MDL-15043
No need to use $USER in the log write call, it's the default
This commit is contained in:
+2
-2
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user