Skip to:
Content

BuddyPress.org

Changeset 1982 for trunk/bp-groups.php


Ignore:
Timestamp:
09/28/2009 10:49:53 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1096 props messenlehner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1976 r1982  
    261261                       
    262262                        /* Add a new default subnav item for when the groups nav is selected. */
    263                         bp_core_add_nav_default( $bp->groups->slug, 'groups_screen_group_home', 'home' );
     263                        bp_core_new_nav_default( array( 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_home', 'subnav_slug' => 'home' ) );
    264264                       
    265265                        /* Add the "Home" subnav item, as this will always be present */
     
    299299        global $bp;
    300300
    301         if ( $bp->current_component == $bp->groups->slug && empty( $bp->current_action ) ) {
     301        if ( $bp->current_component == $bp->groups->slug && empty( $bp->current_action ) && empty( $bp->current_item ) ) {
    302302                $bp->is_directory = true;
    303303
Note: See TracChangeset for help on using the changeset viewer.