[ticket/17153] Remove phpbb_get_user_avatar

PHPBB3-17153
This commit is contained in:
Marc Alexander 2023-07-01 09:48:56 +02:00
parent cf44868393
commit 808b2f3a41
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -3541,24 +3541,6 @@ function phpbb_quoteattr($data, $entities = null)
return $data;
}
/**
* Get user avatar
*
* @deprecated 4.0.0 Use \phpbb\avatar\helper::get_user_avatar() instead
*
* @param array $user_row Row from the users table
* @param string $alt Optional language string for alt tag within image, can be a language key or text
* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP
* @param bool $lazy If true, will be lazy loaded (requires JS)
*
* @return string Avatar html
*/
function phpbb_get_user_avatar($user_row, $alt = 'USER_AVATAR', $ignore_config = false, $lazy = false)
{
$row = \phpbb\avatar\manager::clean_row($user_row, 'user');
return phpbb_get_avatar($row, $alt, $ignore_config, $lazy);
}
/**
* Get avatar
*