Changeset 7536
- Timestamp:
- 11/08/2013 12:34:27 PM (11 years ago)
- Location:
- trunk/bp-notifications
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-classes.php
r7535 r7536 723 723 ); 724 724 725 if ( ! empty( $item_id ) ) {725 if ( ! empty( $item_id ) ) { 726 726 $where_args['item_id'] = $item_id; 727 727 } 728 728 729 if ( ! empty( $component_name ) ) {729 if ( ! empty( $component_name ) ) { 730 730 $where_args['component_name'] = $component_name; 731 731 } 732 732 733 if ( ! empty( $component_action ) ) {733 if ( ! empty( $component_action ) ) { 734 734 $where_args['component_action'] = $component_action; 735 735 } 736 736 737 if ( ! empty( $secondary_item_id ) ) {737 if ( ! empty( $secondary_item_id ) ) { 738 738 $where_args['secondary_item_id'] = $secondary_item_id; 739 739 } … … 762 762 ); 763 763 764 if ( ! empty( $component_name ) ) {764 if ( ! empty( $component_name ) ) { 765 765 $where_args['component_name'] = $component_name; 766 766 } 767 767 768 if ( ! empty( $component_action ) ) {768 if ( ! empty( $component_action ) ) { 769 769 $where_args['component_action'] = $component_action; 770 770 } 771 771 772 if ( ! empty( $secondary_item_id ) ) {772 if ( ! empty( $secondary_item_id ) ) { 773 773 $where_args['secondary_item_id'] = $secondary_item_id; 774 774 } … … 804 804 ); 805 805 806 if ( ! empty( $component_name ) ) {806 if ( ! empty( $component_name ) ) { 807 807 $where_args['component_name'] = $component_name; 808 808 } 809 809 810 if ( ! empty( $component_action ) ) {810 if ( ! empty( $component_action ) ) { 811 811 $where_args['component_action'] = $component_action; 812 812 } 813 813 814 if ( ! empty( $secondary_item_id ) ) {814 if ( ! empty( $secondary_item_id ) ) { 815 815 $where_args['secondary_item_id'] = $secondary_item_id; 816 816 } -
trunk/bp-notifications/bp-notifications-functions.php
r7532 r7536 42 42 'component_action' => '', 43 43 'date_notified' => bp_core_current_time(), 44 'is_new' => 1 44 'is_new' => 1, 45 45 ) ); 46 46 … … 311 311 'component_name' => $component_name, 312 312 'component_action' => $component_action, 313 'is_new' => $is_new 313 'is_new' => $is_new, 314 314 ) ); 315 315 } … … 338 338 'component_name' => $component_name, 339 339 'component_action' => $component_action, 340 'is_new' => $is_new 340 'is_new' => $is_new, 341 341 ) ); 342 342 } … … 363 363 'component_name' => $component_name, 364 364 'component_action' => $component_action, 365 'is_new' => $is_new 365 'is_new' => $is_new, 366 366 ) ); 367 367 } … … 390 390 'component_name' => $component_name, 391 391 'component_action' => $component_action, 392 'is_new' => $is_new 392 'is_new' => $is_new, 393 393 ) ); 394 394 } -
trunk/bp-notifications/bp-notifications-template.php
r7534 r7536 186 186 'page' => $this->pag_page, 187 187 'per_page' => $this->pag_num, 188 'search_terms' => $this->search_terms 188 'search_terms' => $this->search_terms, 189 189 ) ); 190 190 … … 363 363 'max' => false, 364 364 'search_terms' => isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '', 365 'page_arg' => 'npage' 365 'page_arg' => 'npage', 366 366 ) ); 367 367 … … 534 534 if ( '0000-00-00 00:00:00' !== $date_notified ) { 535 535 $retval = bp_core_time_since( $date_notified ); 536 536 537 537 // Notified date is empty, so return a fun string 538 538 } else {
Note: See TracChangeset
for help on using the changeset viewer.