Skip to:
Content

BuddyPress.org

Changeset 2968


Ignore:
Timestamp:
04/28/2010 09:54:41 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2258 props 21cdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-templatetags.php

    r2961 r2968  
    426426    foreach( (array) $bp->bp_nav as $nav_item ) {
    427427        /* If the current component matches the nav item id, then add a highlight CSS class. */
    428         if ( $bp->active_components[$bp->current_component] == $nav_item['css_id'] ) {
     428        if ( !bp_is_directory && $bp->active_components[$bp->current_component] == $nav_item['css_id'] )
    429429            $selected = ' class="current selected"';
    430         } else {
     430        else
    431431            $selected = '';
    432         }
    433432
    434433        /* If we are viewing another person (current_userid does not equal loggedin_user->id)
Note: See TracChangeset for help on using the changeset viewer.