Changeset 1739 for trunk/bp-xprofile.php
- Timestamp:
- 08/31/2009 05:51:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r1723 r1739 244 244 */ 245 245 function xprofile_screen_display_profile() { 246 global $bp , $is_new_friend;246 global $bp; 247 247 248 248 // If this is a first visit to a new friends profile, delete the friend accepted notifications for the 249 // logged in user . $is_new_friend is set in bp-core/bp-core-catchuri.php in bp_core_set_uri_globals()250 if ( $is_new_friend)249 // logged in user, only if $_GET['new'] is set. 250 if ( isset($_GET['new']) ) 251 251 bp_core_delete_notifications_for_user_by_item_id( $bp->loggedin_user->id, $bp->displayed_user->id, 'friends', 'friendship_accepted' ); 252 252 253 do_action( 'xprofile_screen_display_profile', $ is_new_friend);253 do_action( 'xprofile_screen_display_profile', $_GET['new'] ); 254 254 bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'profile/index' ) ); 255 255 }
Note: See TracChangeset
for help on using the changeset viewer.