mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/avatars] Add support for custom avatar HTML code
PHPBB3-10018
This commit is contained in:
parent
b91702665a
commit
076785d76a
3 changed files with 3 additions and 3 deletions
|
@ -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 '';
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue