mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
[ticket/15331] Allow gravatars to be changed in the existing event
Option B: - change the get_avatar function PHPBB3-15331
This commit is contained in:
parent
fa3bdedf7b
commit
e6796a690c
@ -4902,11 +4902,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
|
||||
@ -4914,7 +4909,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