Skip to:
Content

BuddyPress.org

Changeset 1717


Ignore:
Timestamp:
08/27/2009 08:40:07 PM (16 years ago)
Author:
apeatling
Message:

Switching back to root blog 1 and fixing default component selection by checking if a custom slug exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1715 r1717  
    1414/* Define on which blog ID BuddyPress should run */
    1515if ( !defined( 'BP_ROOT_BLOG' ) )
    16     define( 'BP_ROOT_BLOG', 2 );
     16    define( 'BP_ROOT_BLOG', 1 );
    1717
    1818/* Define the user and usermeta table names, useful if you are using custom or shared tables */
     
    120120
    121121    /* The default component to use if none are set and someone visits: http://domain.com/members/andy */
    122     $bp->default_component = 'profile';
    123    
     122    if ( defined( 'BP_XPROFILE_SLUG' ) )
     123        $bp->default_component = BP_XPROFILE_SLUG;
     124    else
     125        $bp->default_component = 'profile';
     126
    124127    /* Sets up the array container for the component navigation rendered by bp_get_nav() */
    125128    $bp->bp_nav = array();
Note: See TracChangeset for help on using the changeset viewer.