Changeset 7532
- Timestamp:
- 11/08/2013 05:38:58 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-notifications.php
r7531 r7532 24 24 * @param string $secondary_item_id 25 25 * @param string $date_notified 26 * @return boolean True on success, false on fail 27 */ 28 function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) { 26 * @param string $is_new 27 * @return boolean True on success, false on fail 28 */ 29 function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false, $is_new = true ) { 29 30 30 31 // Bail if notifications is not active … … 39 40 'component_action' => $component_action, 40 41 'secondary_item_id' => $secondary_item_id, 41 'date_notified' => $date_notified 42 'date_notified' => $date_notified, 43 'is_new' => $is_new 42 44 ); 43 45 -
trunk/bp-notifications/bp-notifications-functions.php
r7529 r7532 42 42 'component_action' => '', 43 43 'date_notified' => bp_core_current_time(), 44 'is_new' => 1 44 45 ) ); 45 46 … … 52 53 $notification->component_action = $r['component_action']; 53 54 $notification->date_notified = $r['date_notified']; 54 $notification->is_new = 1;55 $notification->is_new = $r['is_new']; 55 56 56 57 // Save the new notification
Note: See TracChangeset
for help on using the changeset viewer.