Skip to:
Content

BuddyPress.org

Changeset 7522


Ignore:
Timestamp:
11/07/2013 05:21:57 PM (13 years ago)
Author:
r-a-y
Message:

Fix backpat notification functions.

See r7521, #5148.

File:
1 edited

Legend:

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

    r7521 r7522  
    3333        }
    3434
    35         return bp_notifications_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false );
     35        $args = array(
     36                'item_id'           => $item_id,
     37                'user_id'           => $user_id,
     38                'component_name'    => $component_name,
     39                'component_action'  => $component_action,
     40                'secondary_item_id' => $secondary_item_id,
     41                'date_notified'     => $date_notified
     42        );
     43
     44        return bp_notifications_add_notification( $args );
    3645}
    3746
     
    5059        }
    5160
    52         return bp_notifications_delete_notification( $id );
     61        return BP_Notifications_Notification::delete_by_id( $id );
    5362}
    5463
Note: See TracChangeset for help on using the changeset viewer.