Changeset 5296 for trunk/bp-groups/bp-groups-notifications.php
- Timestamp:
- 11/07/2011 06:49:14 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-notifications.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-notifications.php
r5215 r5296 19 19 $to = $ud->user_email; 20 20 21 $group_link = site_url( bp_get_groups_root_slug(). '/' . $group->slug ); 22 $settings_link = bp_core_get_user_domain( $user_id ) . bp_get_settings_slug() . '/notifications/'; 21 $group_link = site_url( bp_get_groups_root_slug(). '/' . $group->slug ); 22 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 23 $settings_link = bp_core_get_user_domain( $user_id ) . $settings_slug . '/notifications/'; 23 24 24 25 $message = sprintf( __( … … 60 61 61 62 $group_requests = bp_get_group_permalink( $group ) . 'admin/membership-requests'; 62 $profile_link = bp_core_get_user_domain( $requesting_user_id ); 63 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . bp_get_settings_slug() . '/notifications/'; 63 $profile_link = bp_core_get_user_domain( $requesting_user_id ); 64 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 65 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $settings_slug . '/notifications/'; 64 66 65 67 // Set up and send the message … … 109 111 $ud = bp_core_get_core_userdata($requesting_user_id); 110 112 111 $group_link = bp_get_group_permalink( $group ); 112 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . bp_get_settings_slug() . '/notifications/'; 113 $group_link = bp_get_group_permalink( $group ); 114 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 115 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $settings_slug . '/notifications/'; 113 116 114 117 // Set up and send the message … … 166 169 return false; 167 170 168 $group = new BP_Groups_Group( $group_id );169 $ud = bp_core_get_core_userdata($user_id);170 171 $ group_link = bp_get_group_permalink( $group );172 $settings_link = bp_core_get_user_domain( $user_id ) . bp_get_settings_slug(). '/notifications/';171 $group = new BP_Groups_Group( $group_id ); 172 $ud = bp_core_get_core_userdata($user_id); 173 $group_link = bp_get_group_permalink( $group ); 174 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 175 $settings_link = bp_core_get_user_domain( $user_id ) . $settings_slug . '/notifications/'; 173 176 174 177 // Set up and send the message
Note: See TracChangeset
for help on using the changeset viewer.