1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-17 22:11:26 +02:00

This should ensure that most avatars are displayed with correct dimensions. Might slow down conversions and there can be no absolute guarantee.

#10105


git-svn-id: file:///svn/phpbb/trunk@7399 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof
2007-04-25 13:14:11 +00:00
parent 8a5452d4eb
commit c3c5da879e
3 changed files with 48 additions and 10 deletions

View File

@@ -1435,6 +1435,29 @@ function phpbb_import_avatar($user_avatar)
return '';
}
/**
* Find out about the avatar's dimensions
*/
function phpbb_get_avatar_height($user_avatar)
{
global $convert_row;
return get_avatar_height($user_avatar, 'phpbb_avatar_type', $convert_row['user_avatar_type']);
}
/**
* Find out about the avatar's dimensions
*/
function phpbb_get_avatar_width($user_avatar)
{
global $convert_row;
return get_avatar_width($user_avatar, 'phpbb_avatar_type', $convert_row['user_avatar_type']);
}
/**
* Calculate the correct to_address field for private messages
*/