mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
[ticket/13498] Update calls to get_user_avatar()
PHPBB3-13498
This commit is contained in:
parent
ef1be6e247
commit
35d37fdff4
@ -175,7 +175,7 @@ class user_loader
|
|||||||
/**
|
/**
|
||||||
* Get avatar
|
* Get avatar
|
||||||
*
|
*
|
||||||
* @param int $user_id User ID of the user you want to retreive the avatar for
|
* @param int $user_id User ID of the user you want to retrieve the avatar for
|
||||||
* @param bool $query Should we query the database if this user has not yet been loaded?
|
* @param bool $query Should we query the database if this user has not yet been loaded?
|
||||||
* Typically this should be left as false and you should make sure
|
* Typically this should be left as false and you should make sure
|
||||||
* you load users ahead of time with load_users()
|
* you load users ahead of time with load_users()
|
||||||
@ -188,12 +188,14 @@ class user_loader
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('get_user_avatar'))
|
$row = array(
|
||||||
{
|
'avatar' => $user['user_avatar'],
|
||||||
include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
|
'avatar_type' => $user['user_avatar_type'],
|
||||||
}
|
'avatar_width' => $user['user_avatar_width'],
|
||||||
|
'avatar_height' => $user['user_avatar_height'],
|
||||||
|
);
|
||||||
|
|
||||||
return get_user_avatar($user['user_avatar'], $user['user_avatar_type'], $user['user_avatar_width'], $user['user_avatar_height']);
|
return phpbb_get_avatar($row, 'USER_AVATAR');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user