1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +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 * @inheritdoc
*/ */
public function get_custom_html($row, $ignore_config = false) public function get_custom_html($row, $ignore_config = false, $alt = '')
{ {
return ''; return '';
} }

View File

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

View File

@ -1372,7 +1372,7 @@ function get_avatar($row, $alt, $ignore_config = false)
{ {
if ($avatar->custom_html) 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); $avatar_data = $avatar->get_data($row, $ignore_config);