1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/avatars] Add support for custom avatar HTML code

PHPBB3-10018
This commit is contained in:
Marc Alexander 2012-11-14 20:04:02 +01:00
parent b91702665a
commit 076785d76a
3 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
/**
* @inheritdoc
*/
public function get_custom_html($row, $ignore_config = false)
public function get_custom_html($row, $ignore_config = false, $alt = '')
{
return '';
}

View File

@ -41,7 +41,7 @@ interface phpbb_avatar_driver_interface
* the avatar anyways. Useful for the ACP.
* @return string HTML
*/
public function get_custom_html($row, $ignore_config = false);
public function get_custom_html($row, $ignore_config = false, $alt = '');
/**
* @TODO

View File

@ -1372,7 +1372,7 @@ function get_avatar($row, $alt, $ignore_config = false)
{
if ($avatar->custom_html)
{
return $avatar->get_html($row, $ignore_config);
return $avatar->get_custom_html($row, $ignore_config, $alt);
}
$avatar_data = $avatar->get_data($row, $ignore_config);