[ticket/17153] Remove get_user_avatar

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

View file

@ -19,34 +19,6 @@ if (!defined('IN_PHPBB'))
exit; exit;
} }
/**
* Get user avatar
*
* @deprecated 3.1.0-a1 (To be removed: 4.0.0)
*
* @param string $avatar Users assigned avatar name
* @param int $avatar_type Type of avatar
* @param string $avatar_width Width of users avatar
* @param string $avatar_height Height of users avatar
* @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 image
*/
function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR', $ignore_config = false, $lazy = false)
{
// map arguments to new function phpbb_get_avatar()
$row = array(
'avatar' => $avatar,
'avatar_type' => $avatar_type,
'avatar_width' => $avatar_width,
'avatar_height' => $avatar_height,
);
return phpbb_get_avatar($row, $alt, $ignore_config, $lazy);
}
/** /**
* Hash the password * Hash the password
* *