Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 10:58:18 PM (15 years ago)
Author:
boonebgorges
Message:

Cleans up use of BP_x_SLUG, replacing with wrapper functions where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-notifications.php

    r4605 r4638  
    1717                $to = $ud->user_email;
    1818
    19                 $group_link = site_url( $bp->groups->slug . '/' . $group->slug );
    20                 $settings_link = bp_core_get_user_domain( $user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     19                $group_link = site_url( bp_get_groups_root_slug(). '/' . $group->slug );
     20                $settings_link = bp_core_get_user_domain( $user_id ) . bp_get_settings_slug() . '/notifications/';
    2121
    2222                $message = sprintf( __(
     
    5959        $group_requests = bp_get_group_permalink( $group ) . 'admin/membership-requests';
    6060        $profile_link = bp_core_get_user_domain( $requesting_user_id );
    61         $settings_link = bp_core_get_user_domain( $requesting_user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     61        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . bp_get_settings_slug() . '/notifications/';
    6262
    6363        // Set up and send the message
     
    108108
    109109        $group_link = bp_get_group_permalink( $group );
    110         $settings_link = bp_core_get_user_domain( $requesting_user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     110        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . bp_get_settings_slug() . '/notifications/';
    111111
    112112        // Set up and send the message
     
    168168
    169169        $group_link = bp_get_group_permalink( $group );
    170         $settings_link = bp_core_get_user_domain( $user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     170        $settings_link = bp_core_get_user_domain( $user_id ) . bp_get_settings_slug() . '/notifications/';
    171171
    172172        // Set up and send the message
     
    216216                $invited_ud = bp_core_get_core_userdata($invited_user_id);
    217217
    218                 $settings_link = bp_core_get_user_domain( $invited_user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     218                $settings_link = bp_core_get_user_domain( $invited_user_id ) . bp_get_settings_slug() . '/notifications/';
    219219                $invited_link = bp_core_get_user_domain( $invited_user_id );
    220220                $invites_link = $invited_link . $bp->groups->slug . '/invites';
     
    276276
    277277                        $message_link = bp_activity_get_permalink( $activity_id );
    278                         $settings_link = bp_core_get_user_domain( $receiver_user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
     278                        $settings_link = bp_core_get_user_domain( $receiver_user_id ) . bp_get_settings_slug() . '/notifications/';
    279279
    280280                        $poster_name = stripslashes( $poster_name );
Note: See TracChangeset for help on using the changeset viewer.