diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-08-09 10:31:43 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-08-09 10:31:43 +0200 |
commit | 1956bd4bbab091bd4bb9095e6413f59ec24b53fc (patch) | |
tree | 372a8d6b8d4ef347a16748022b0fe8eb3d043ae7 /phpBB/includes/functions.php | |
parent | 03c64d3384bd77f5bb43d45d6b1b70314bc651b8 (diff) | |
parent | 668defcf5705699be3a15548c08a3ea6c79086af (diff) | |
download | forums-1956bd4bbab091bd4bb9095e6413f59ec24b53fc.tar forums-1956bd4bbab091bd4bb9095e6413f59ec24b53fc.tar.gz forums-1956bd4bbab091bd4bb9095e6413f59ec24b53fc.tar.bz2 forums-1956bd4bbab091bd4bb9095e6413f59ec24b53fc.tar.xz forums-1956bd4bbab091bd4bb9095e6413f59ec24b53fc.zip |
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index a987213337..c6d63e13f4 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3997,7 +3997,7 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false, $lazy = false) { global $user, $config, $cache, $phpbb_root_path, $phpEx; global $request; - global $phpbb_container; + global $phpbb_container, $phpbb_dispatcher; if (!$config['allow_avatar'] && !$ignore_config) { @@ -4059,6 +4059,20 @@ function phpbb_get_avatar($row, $alt, $ignore_config = false, $lazy = false) 'alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />'; } + /** + * Event to modify HTML <img> tag of avatar + * + * @event core.get_avatar_after + * @var array row Row cleaned by \phpbb\avatar\manager::clean_row + * @var string alt Optional language string for alt tag within image, can be a language key or text + * @var bool ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP + * @var array avatar_data The HTML attributes for avatar <img> tag + * @var string html The HTML <img> tag of generated avatar + * @since 3.1.6-RC1 + */ + $vars = array('row', 'alt', 'ignore_config', 'avatar_data', 'html'); + extract($phpbb_dispatcher->trigger_event('core.get_avatar_after', compact($vars))); + return $html; } |