Changeset 5301 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 11/08/2011 01:14:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r5262 r5301 40 40 if ( !empty( $_BP_COOKIE['bp-' . $object . '-scope'] ) ) { 41 41 if ( 'personal' == $_BP_COOKIE['bp-' . $object . '-scope'] ) { 42 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id: $bp->loggedin_user->id;42 $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : $bp->loggedin_user->id; 43 43 $qs[] = 'user_id=' . $user_id; 44 44 } 45 if ( 'all' != $_BP_COOKIE['bp-' . $object . '-scope'] && empty( $bp->displayed_user->id) && !$bp->is_single_item )45 if ( 'all' != $_BP_COOKIE['bp-' . $object . '-scope'] && !bp_displayed_user_id() && !$bp->is_single_item ) 46 46 $qs[] = 'scope=' . $_BP_COOKIE['bp-' . $object . '-scope']; // Activity stream scope only on activity directory. 47 47 }
Note: See TracChangeset
for help on using the changeset viewer.