1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/13713] Fix avatar display with new helper methods

PHPBB3-13713
This commit is contained in:
Marc Alexander
2021-05-04 21:06:41 +02:00
parent 169015eab4
commit 9ae015569c
3 changed files with 25 additions and 12 deletions

View File

@@ -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]),
]);

View File

@@ -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),
]);