diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2007-04-25 13:14:11 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2007-04-25 13:14:11 +0000 |
| commit | c3c5da879ea87db67b9f9aeca4095e371ab55752 (patch) | |
| tree | f79fb59b59bb5cf49e5e75b29437bda12c61f41d /phpBB/install/convertors/functions_phpbb20.php | |
| parent | 8a5452d4ebaf2eb9e02612192b49515897a32c00 (diff) | |
| download | forums-c3c5da879ea87db67b9f9aeca4095e371ab55752.tar forums-c3c5da879ea87db67b9f9aeca4095e371ab55752.tar.gz forums-c3c5da879ea87db67b9f9aeca4095e371ab55752.tar.bz2 forums-c3c5da879ea87db67b9f9aeca4095e371ab55752.tar.xz forums-c3c5da879ea87db67b9f9aeca4095e371ab55752.zip | |
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
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
| -rw-r--r-- | phpBB/install/convertors/functions_phpbb20.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php index 5c3deab0fc..675a64eecb 100644 --- a/phpBB/install/convertors/functions_phpbb20.php +++ b/phpBB/install/convertors/functions_phpbb20.php @@ -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 */ |
