1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/13713] Fix avatars

PHPBB3-13713
This commit is contained in:
lavigor
2018-07-04 01:37:35 +03:00
committed by Marc Alexander
parent c66f4806e8
commit 6d849f2cce
3 changed files with 6 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ abstract class base_group implements source_interface
'id' => $group_id,
'avatar' => [
'type' => 'group',
'src' => phpbb_get_group_avatar($groups[$group_id]),
'img' => phpbb_get_group_avatar($groups[$group_id]),
],
'rank' => $group_rank['title'],
];

View File

@@ -74,7 +74,7 @@ abstract class base_user implements source_interface
'id' => $row['user_id'],
'avatar' => [
'type' => 'user',
'src' => $this->user_loader->get_avatar($row['user_id'], true),
'img' => $this->user_loader->get_avatar($row['user_id'], true),
],
'rank' => (isset($user_rank['rank_title'])) ? $user_rank['rank_title'] : '',
];