mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[ticket/14043] Add core.get_avatar_after php event
PHPBB3-14043
This commit is contained in:
@@ -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,
|
* This event is used for performing actions directly before marking forums,
|
||||||
* topics or posts as read.
|
* topics or posts as read.
|
||||||
*
|
*
|
||||||
* It is also possible to prevent the marking. For that, the $should_markread parameter
|
* It is also possible to prevent the marking. For that, the $should_markread parameter
|
||||||
* should be set to FALSE.
|
* 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) . '" />';
|
'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event to modify HTML <img> tag of avatar
|
||||||
|
*
|
||||||
|
* @event core.get_avatar_after
|
||||||
|
* @var string html The HTML <img> tag of generated avatar
|
||||||
|
* @since 3.1.6
|
||||||
|
*/
|
||||||
|
$vars = array('html');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.get_avatar_after', compact($vars)));
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user