138 | | // The following lines are for backwards template compatibility. |
139 | | if ( 'my-friends' == $bp->current_action && $bp->activity->slug == $bp->current_component ) |
140 | | $type = 'friends'; |
141 | | |
142 | | if ( $bp->displayed_user->id && $bp->activity->slug == $bp->current_component && ( !$bp->current_action || 'just-me' == $bp->current_action ) ) |
143 | | $type = 'personal'; |
144 | | |
145 | | if ( $bp->displayed_user->id && $bp->profile->slug == $bp->current_component ) |
146 | | $type = 'personal'; |
| 139 | // bypass backwards compatability check |
| 140 | if ($override == false) { |
| 141 | // The following lines are for backwards template compatibility. |
| 142 | if ( 'my-friends' == $bp->current_action && $bp->activity->slug == $bp->current_component ) |
| 143 | $type = 'friends'; |
| 144 | |
| 145 | if ( $bp->displayed_user->id && $bp->activity->slug == $bp->current_component && ( !$bp->current_action || 'just-me' == $bp->current_action ) ) |
| 146 | $type = 'personal'; |
| 147 | |
| 148 | if ( $bp->displayed_user->id && $bp->profile->slug == $bp->current_component ) |
| 149 | $type = 'personal'; |
| 150 | } |