mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17153] Remove get_user_avatar
PHPBB3-17153
This commit is contained in:
parent
808b2f3a41
commit
f54bafec29
1 changed files with 0 additions and 28 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue