mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/php-events] Properly name user_default_avatar and add additional vars
PHPBB3-9550
This commit is contained in:
parent
730bd6eb08
commit
3af0ae69ee
1 changed files with 2 additions and 2 deletions
|
@ -1276,8 +1276,8 @@ function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $
|
|||
{
|
||||
// This allows extensions to change the default return when no avatar is given
|
||||
// Useful for default avatars
|
||||
$vars = array('default_avatar');
|
||||
extract($phpbb_dispatcher->trigger_event('core.user_default_avatar', compact($vars)));
|
||||
$vars = array('avatar', 'avatar_type', 'ignore_config', 'default_avatar');
|
||||
extract($phpbb_dispatcher->trigger_event('core.get_user_avatar_default', compact($vars)));
|
||||
}
|
||||
return $default_avatar;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue