mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-22 00:21:02 +01:00
Merge pull request #4910 from javiexin/ticket/15331_B
[ticket/15331] Allow gravatars to be overridden by existing event - B
This commit is contained in:
commit
0e9a1e0d54
@ -4070,11 +4070,6 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false, $lazy = false)
|
||||
if ($driver)
|
||||
{
|
||||
$html = $driver->get_custom_html($user, $row, $alt);
|
||||
if (!empty($html))
|
||||
{
|
||||
return $html;
|
||||
}
|
||||
|
||||
$avatar_data = $driver->get_data($row);
|
||||
}
|
||||
else
|
||||
@ -4082,7 +4077,7 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false, $lazy = false)
|
||||
$avatar_data['src'] = '';
|
||||
}
|
||||
|
||||
if (!empty($avatar_data['src']))
|
||||
if (empty($html) && !empty($avatar_data['src']))
|
||||
{
|
||||
if ($lazy)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user