Skip to:
Content

BuddyPress.org

Changeset 462 for trunk/bp-friends.php


Ignore:
Timestamp:
10/30/2008 12:18:36 AM (18 years ago)
Author:
apeatling
Message:

Added message email notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r449 r462  
    118118function friends_screen_requests() {
    119119    global $bp;
    120    
    121     // Remove any notifications of new friend requests as we are viewing the
    122     // friend request page
    123     bp_core_delete_notifications_for_user_by_type( $bp['loggedin_userid'], 'friends', 'friendship_request' );
    124        
     120           
    125121    if ( isset($bp['action_variables']) && in_array( 'accept', $bp['action_variables'] ) && is_numeric($bp['action_variables'][1]) ) {
    126122       
    127123        if ( friends_accept_friendship( $bp['action_variables'][1] ) ) {
     124            //bp_core_delete_notification( $bp['loggedin_userid'], 'friends', 'friendship_request' );
     125           
    128126            $bp['message'] = __('Friendship accepted', 'buddypress');
    129127            $bp['message_type'] = 'success';
Note: See TracChangeset for help on using the changeset viewer.