MDL-45242 Lib: Replace direct references to ->showuseridentity

This commit is contained in:
sam marshall
2021-03-08 09:20:18 +00:00
parent 60a1b159aa
commit 3f003455f3
7 changed files with 36 additions and 44 deletions
+2 -6
View File
@@ -251,12 +251,8 @@ class core_user {
$extrasql = '';
$extraparams = [];
if (empty($CFG->showuseridentity)) {
// Explode gives wrong result with empty string.
$extra = [];
} else {
$extra = explode(',', $CFG->showuseridentity);
}
// TODO Does not support custom user profile fields (MDL-70456).
$extra = \core\user_fields::get_identity_fields(null, false);
// We need the username just to skip guests.
$extrafieldlist = $extra;