Commit 48c94cda authored by Robert Lyon's avatar Robert Lyon

Bug 1845051: The wrong no_userphoto file is checked for

When fetching profileicon for mobile

- see bug for testing instructions

behatnotneeded

Change-Id: I494b8e6ddcc697478b9ff334df900e42ff07aaab
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ae055438
......@@ -3050,7 +3050,9 @@ function remote_avatar_url($email, $size) {
log_warn('remote_avatar_url: size should be in (' . join(', ', $allowedsizes) . ')');
$s = 40;
}
$notfound = $THEME->get_image_url('no_userphoto' . $s);
// The no_userphoto at 100px doesn't have a size suffix
$notfoundimg = ($s == 100) ? 'no_userphoto' : 'no_userphoto' . $s;
$notfound = $THEME->get_image_url($notfoundimg);
if (!empty($email) && get_config('remoteavatars')) {
return remote_avatar($email, $s, $notfound);
}
......
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