Skip to:
Content

BuddyPress.org

Changeset 1718 for trunk/bp-forums.php


Ignore:
Timestamp:
08/27/2009 09:18:10 PM (16 years ago)
Author:
apeatling
Message:

Fixes #723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r1705 r1718  
    33/* Define the parent forum ID */
    44if ( !defined( 'BP_FORUMS_PARENT_FORUM_ID' ) )
    5     define ( 'BP_FORUMS_PARENT_FORUM_ID', 1 );
     5    define( 'BP_FORUMS_PARENT_FORUM_ID', 1 );
     6   
     7if ( !defined( 'BP_FORUMS_SLUG' ) )
     8    define( 'BP_FORUMS_SLUG', 'forums' );
    69
    710require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-bbpress.php' );
     
    1821    $bp->forums->image_base = BP_PLUGIN_URL . '/bp-forums/images';
    1922    $bp->forums->bbconfig = get_site_option( 'bb-config-location' );
     23    $bp->forums->slug = BP_FORUMS_SLUG;
     24
     25    /* Register this in the active components array */
     26    $bp->active_components[$bp->forums->slug] = $bp->forums->id;
    2027}
    2128add_action( 'plugins_loaded', 'bp_forums_setup', 5 );
Note: See TracChangeset for help on using the changeset viewer.