1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/11744] Move notification from ucp_groups to group_user_add

PHPBB3-11744
This commit is contained in:
Nathaniel Guse
2013-07-26 11:22:44 -05:00
parent e0ef10128b
commit c260e82a9b
2 changed files with 15 additions and 8 deletions

View File

@@ -197,13 +197,6 @@ class ucp_groups
else
{
group_user_add($group_id, $user->data['user_id'], false, false, false, 0, 1);
$phpbb_notifications = $phpbb_container->get('notification_manager');
$phpbb_notifications->add_notifications('group_request', array_merge(
$group_row[$group_id],
array('user_id' => $user->data['user_id'])
));
}
add_log('user', $user->data['user_id'], 'LOG_USER_GROUP_JOIN' . (($group_row[$group_id]['group_type'] == GROUP_FREE) ? '' : '_PENDING'), $group_row[$group_id]['group_name']);