Changeset 2590
- Timestamp:
- 02/04/2010 02:16:58 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/_inc/ajax.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r2586 r2590 71 71 global $bp; 72 72 73 /* We need to calculate and return the feed URL for each scope */ 74 $feed_url = site_url( BP_ACTIVITY_SLUG . '/feed/' ); 75 76 switch ( $_POST['scope'] ) { 77 case 'friends': 78 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/friends/feed/'; 79 break; 80 case 'groups': 81 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/groups/feed/'; 82 break; 83 case 'favorites': 84 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/favorites/feed/'; 85 break; 86 case 'mentions': 87 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/mentions/feed/'; 88 delete_usermeta( $bp->loggedin_user->id, 'bp_new_mention_count' ); 89 break; 90 } 91 73 92 /* Buffer the loop in the template to a var for JS to spit out. */ 74 93 ob_start(); 75 94 locate_template( array( 'activity/activity-loop.php' ), true ); 76 95 $result['contents'] = ob_get_contents(); 96 $result['feed_url'] = apply_filters( 'bp_dtheme_activity_feed_url', $feed_url, $_POST['scope'] ); 77 97 ob_end_clean(); 78 98
Note: See TracChangeset
for help on using the changeset viewer.