mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13713] Fix avatar display with new helper methods
PHPBB3-13713
This commit is contained in:
@@ -159,10 +159,7 @@ abstract class base_group implements source_interface
|
||||
'name' => $groups[$group_id]['group_name'],
|
||||
'type' => 'g',
|
||||
'id' => $group_id,
|
||||
'avatar' => [
|
||||
'type' => 'group',
|
||||
'img' => phpbb_get_group_avatar($groups[$group_id]),
|
||||
],
|
||||
'avatar' => $this->helper->get_avatar($groups[$group_id]),
|
||||
'rank' => (isset($group_rank['title'])) ? $group_rank['title'] : '',
|
||||
'priority' => $this->get_priority($groups[$group_id]),
|
||||
]);
|
||||
|
@@ -152,10 +152,7 @@ abstract class base_user implements source_interface
|
||||
'name' => $this->user_loader->get_username($user['user_id'], 'username'),
|
||||
'type' => 'u',
|
||||
'id' => $user['user_id'],
|
||||
'avatar' => [
|
||||
'type' => 'user',
|
||||
'img' => $this->user_loader->get_avatar($user['user_id']),
|
||||
],
|
||||
'avatar' => $this->user_loader->get_avatar($user['user_id']),
|
||||
'rank' => (isset($user_rank['rank_title'])) ? $user_rank['rank_title'] : '',
|
||||
'priority' => $this->get_priority($user),
|
||||
]);
|
||||
|
Reference in New Issue
Block a user