diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4159af5678..533bab8936 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1159,7 +1159,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $ /** * This event is used for performing actions directly before marking forums, * topics or posts as read. - * + * * It is also possible to prevent the marking. For that, the $should_markread parameter * should be set to FALSE. * @@ -4806,6 +4806,16 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false) 'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />'; } + /** + * Event to modify HTML tag of avatar + * + * @event core.get_avatar_after + * @var string html The HTML tag of generated avatar + * @since 3.1.6 + */ + $vars = array('html'); + extract($phpbb_dispatcher->trigger_event('core.get_avatar_after', compact($vars))); + return $html; }