mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
Merge 0f8f012ce8
into b5d1d03a47
This commit is contained in:
commit
bef6927bb6
1 changed files with 10 additions and 0 deletions
|
@ -3620,6 +3620,16 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false, $lazy = false)
|
|||
$avatar_data['src'] = '';
|
||||
}
|
||||
|
||||
// Default avatar display
|
||||
if (!$avatar_data['src'])
|
||||
{
|
||||
$phpbb_path_helper = $phpbb_container->get('path_helper');
|
||||
$web_path = $phpbb_path_helper->get_web_root_path();
|
||||
$theme = "{$web_path}styles/" . rawurlencode($user->style['style_path']) . '/theme';
|
||||
$src = 'src="' . $theme . '/images/no_avatar.gif"';
|
||||
$html = '<img class="avatar" ' . $src . ' ' . 'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
|
||||
}
|
||||
|
||||
if (empty($html) && !empty($avatar_data['src']))
|
||||
{
|
||||
if ($lazy)
|
||||
|
|
Loading…
Add table
Reference in a new issue