Skip to:
Content

BuddyPress.org

Ticket #2637: patch-2637.patch

File patch-2637.patch, 787 bytes (added by DJPaul, 14 years ago)

v1

  • bp-groups.php

     
    15481548                return false;
    15491549
    15501550        if ( !$group_id ) {
    1551                 /* If this is a new group, set up the creator as the first member and admin */
     1551                // If this is a new group, set up the creator as the first member and admin
    15521552                $member = new BP_Groups_Member;
    15531553                $member->group_id = $group->id;
    15541554                $member->user_id = $group->creator_id;
     
    15581558                $member->date_modified = gmdate( "Y-m-d H:i:s" );
    15591559
    15601560                $member->save();
     1561                do_action( 'groups_create_group', $group->id, $member, $group );
     1562
     1563        } else {
     1564                do_action( 'groups_update_group', $group->id, $group );
    15611565        }
    15621566
    15631567        do_action( 'groups_created_group', $group->id );