Commit 5fe3eb52 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Remove the display of the username for normal users (Bug #1434935)"

parents 48adf067 3bb91448
......@@ -1033,7 +1033,7 @@ function display_name($user, $userto=null, $nameonly=false, $realname=false, $us
$userto = get_user_for_display($userto);
$user = get_user_for_display($user);
$addusername = ($username && empty($nousernames)) || !empty($userto->admin) || !empty($userto->staff) || $userto === $user;
$addusername = ($username && empty($nousernames)) || !empty($userto->admin) || !empty($userto->staff);
// if they don't have a preferred name set, just return here
if (empty($user->preferredname)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment