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

[ticket/15234] patch avatar sizes

PHPBB3-15234
This commit is contained in:
Michael Miday
2017-06-01 16:35:21 -04:00
parent 52dd4895c8
commit 686a8e6d3a
4 changed files with 7 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ class gravatar extends \phpbb\avatar\driver\driver
*/
public function get_custom_html($user, $row, $alt = '')
{
return '<img src="' . $this->get_gravatar_url($row) . '" ' .
return '<img class="gravatar" src="' . $this->get_gravatar_url($row) . '" ' .
($row['avatar_width'] ? ('width="' . $row['avatar_width'] . '" ') : '') .
($row['avatar_height'] ? ('height="' . $row['avatar_height'] . '" ') : '') .
'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';