Changeset 2287 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/10/2010 08:42:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/_inc/ajax.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r2268 r2287 71 71 )); 72 72 } else { 73 $activity_id = xprofile_post_update( array(73 $activity_id = bp_activity_post_update( array( 74 74 'content' => $_POST['content'] 75 75 )); … … 169 169 $query_string = 'user_id=' . $bp->displayed_user->id; 170 170 } else { 171 /* Set a valid type */ 172 if ( !$type || ( 'all' != $type && 'friends' != $type && 'groups' != $type && 'favorites' != $type ) ) 173 $type = 'all'; 174 175 if ( ( 'friends' == $type || 'groups' == $type || 'favorites' == $type ) && !is_user_logged_in() ) 171 /* Make sure a type is set. */ 172 if ( empty($type) ) 176 173 $type = 'all'; 177 174 … … 195 192 $query_string = 'include=' . $favorite_ids; 196 193 break; 194 case 'atme': 195 $query_string = 'search_terms=@' . bp_core_get_username( $bp->loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login ); 196 197 /* Reset the number of new @ mentions for the user */ 198 delete_usermeta( $bp->loggedin_user->id, 'bp_new_mention_count' ); 199 break; 197 200 } 198 201 }
Note: See TracChangeset
for help on using the changeset viewer.