From 2419f63aab8b1d164511e1688228ef8b11e2d515 Mon Sep 17 00:00:00 2001 From: Wardormeur Date: Sun, 4 Oct 2015 21:13:49 +0200 Subject: [PATCH] [ticket/14213] Adding missing reference to event dispatcher Required to dispatch event, wasn't included into global PHPBB3-14213 --- phpBB/includes/functions_user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 66da6503ae..123a893f23 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -2698,7 +2698,7 @@ function group_delete($group_id, $group_name = false) */ function group_user_add($group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $default = false, $leader = 0, $pending = 0, $group_attributes = false) { - global $db, $auth, $phpbb_container; + global $db, $auth, $phpbb_container, $phpbb_dispatcher; // We need both username and user_id info $result = user_get_id_name($user_id_ary, $username_ary); @@ -2762,7 +2762,7 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false, * @var string group_name Name of the group * @var array user_id_ary IDs of the users which are added * @var array username_ary names of the users which are added - * @since 3.6 + * @since 3.7 */ $vars = array('group_id', 'group_name', 'user_id_ary', 'username_ary'); extract($phpbb_dispatcher->trigger_event('core.group_add_user_after', compact($vars)));