Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2016 01:03:18 AM (10 years ago)
Author:
dcavins
Message:

BP Email: Fix tokens for group invite email.

  • Make sure that the group

invitation-related actions
are referring to the
correct tokens.

  • Include the ID of the

inviter for use in the
deprecated actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/2.5.php

    r10603 r10606  
    480480             * @param string          $settings_link Removed in 2.5; now an empty string.
    481481             */
    482             $value = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $value, &$tokens['group'], $tokens['inviter-profile.name'], $tokens['inviter-profile.url'], $tokens['invites.url'], $tokens['group.url'], '' ) );
     482            $value = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $value, &$tokens['group'], $tokens['inviter.name'], $tokens['inviter.url'], $tokens['invites.url'], $tokens['group.url'], '' ) );
    483483        }
    484484
     
    841841         * @param BP_Groups_Group $group            Group object.
    842842         */
    843         do_action( 'bp_groups_sent_invited_email', $tokens['inviter-profile.id'], $email_subject, $email_content, $tokens['group'] );
     843        do_action( 'bp_groups_sent_invited_email', $tokens['inviter.id'], $email_subject, $email_content, $tokens['group'] );
    844844
    845845    } elseif ( $email_type === 'groups-member-promoted' ) {
Note: See TracChangeset for help on using the changeset viewer.