Changeset 5296
- Timestamp:
- 11/07/2011 06:49:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r5217 r5296 54 54 $poster_name = bp_core_get_user_displayname( $activity->user_id ); 55 55 56 $message_link = bp_activity_get_permalink( $activity_id ); 57 $settings_link = bp_core_get_user_domain( $receiver_user_id ) . bp_get_settings_slug() . '/notifications/'; 56 $message_link = bp_activity_get_permalink( $activity_id ); 57 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 58 $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/'; 58 59 59 60 $poster_name = stripslashes( $poster_name ); … … 139 140 140 141 if ( $original_activity->user_id != $commenter_id && 'no' != bp_get_user_meta( $original_activity->user_id, 'notification_activity_new_reply', true ) ) { 141 $poster_name = bp_core_get_user_displayname( $commenter_id ); 142 $thread_link = bp_activity_get_permalink( $activity_id ); 143 $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . bp_get_settings_slug() . '/notifications/'; 142 $poster_name = bp_core_get_user_displayname( $commenter_id ); 143 $thread_link = bp_activity_get_permalink( $activity_id ); 144 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 145 $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . $settings_slug . '/notifications/'; 144 146 145 147 $poster_name = stripslashes( $poster_name ); … … 184 186 185 187 if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != bp_get_user_meta( $parent_comment->user_id, 'notification_activity_new_reply', true ) ) { 186 $poster_name = bp_core_get_user_displayname( $commenter_id ); 187 $thread_link = bp_activity_get_permalink( $activity_id ); 188 $settings_link = bp_core_get_user_domain( $parent_comment->user_id ) . bp_get_settings_slug() . '/notifications/'; 188 $poster_name = bp_core_get_user_displayname( $commenter_id ); 189 $thread_link = bp_activity_get_permalink( $activity_id ); 190 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 191 $settings_link = bp_core_get_user_domain( $parent_comment->user_id ) . $settings_slug . '/notifications/'; 189 192 190 193 // Set up and send the message -
trunk/bp-core/deprecated/1.5.php
r5294 r5296 322 322 $poster_name = bp_core_get_user_displayname( $poster_user_id ); 323 323 324 $message_link = bp_activity_get_permalink( $activity_id ); 325 $settings_link = bp_core_get_user_domain( $receiver_user_id ) . bp_get_settings_slug() . '/notifications/'; 324 $message_link = bp_activity_get_permalink( $activity_id ); 325 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 326 $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/'; 326 327 327 328 $poster_name = stripslashes( $poster_name ); -
trunk/bp-friends/bp-friends-notifications.php
r4961 r5296 15 15 16 16 $all_requests_link = bp_core_get_user_domain( $friend_id ) . bp_get_friends_slug() . '/requests/'; 17 $settings_ link = bp_core_get_user_domain( $friend_id ) . bp_get_settings_slug() . '/notifications';18 19 $initiator_link = bp_core_get_user_domain( $initiator_id );17 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 18 $settings_link = bp_core_get_user_domain( $friend_id ) . $settings_slug . '/notifications'; 19 $initiator_link = bp_core_get_user_domain( $initiator_id ); 20 20 21 21 // Set up and send the message … … 58 58 $ud = get_userdata( $initiator_id ); 59 59 60 $friend_link = bp_core_get_user_domain( $friend_id ); 61 $settings_link = bp_core_get_user_domain( $initiator_id ) . bp_get_settings_slug() . '/notifications'; 60 $friend_link = bp_core_get_user_domain( $friend_id ); 61 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 62 $settings_link = bp_core_get_user_domain( $initiator_id ) . $settings_slug . '/notifications'; 62 63 63 64 // Set up and send the message -
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 -
trunk/bp-messages/bp-messages-notifications.php
r4825 r5296 18 18 $ud = get_userdata( $recipient->user_id ); 19 19 $message_link = bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() .'/'; 20 $settings_link = bp_core_get_user_domain( $recipient->user_id ) . bp_get_settings_slug() . '/notifications/'; 20 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 21 $settings_link = bp_core_get_user_domain( $recipient->user_id ) . $settings_slug . '/notifications/'; 21 22 22 23 // Sender info
Note: See TracChangeset
for help on using the changeset viewer.