Changeset 4381 for trunk/bp-activity/bp-activity-loader.php
- Timestamp:
- 05/17/2011 07:25:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-loader.php
r4378 r4381 90 90 global $bp; 91 91 92 // Stop if there is no user displayed93 if ( empty( $bp->displayed_user->id ) )94 return;95 96 // Determine user to use97 if ( !empty( $bp->displayed_user->domain ) )98 $user_domain = $bp->displayed_user->domain;99 else100 return;101 102 92 // Add 'Activity' to the main navigation 103 93 $main_nav = array( … … 109 99 'item_css_id' => $this->id 110 100 ); 101 102 // Stop if there is no user displayed or logged in 103 if ( !is_user_logged_in() && !isset( $bp->displayed_user->id ) ) 104 return; 105 106 // Determine user to use 107 if ( isset( $bp->displayed_user->domain ) ) 108 $user_domain = $bp->displayed_user->domain; 109 elseif ( isset( $bp->loggedin_user->domain ) ) 110 $user_domain = $bp->loggedin_user->domain; 111 else 112 return; 111 113 112 114 // User link
Note: See TracChangeset
for help on using the changeset viewer.