Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/30/2011 05:41:29 PM (14 years ago)
Author:
djpaul
Message:

Remove duplicated check for group forums in the screen code.
Also adds checks to make sure the group's forum is set up and ready to go.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-screens.php

    r4316 r4317  
    105105function groups_screen_group_forum() {
    106106    global $bp, $wp_query;
     107
     108    if ( !bp_is_active( 'forums' ) || !bp_forums_is_installed_correctly() )
     109        return false;
    107110
    108111    if ( bp_is_single_item() && $bp->groups->current_group->user_has_access ) {
Note: See TracChangeset for help on using the changeset viewer.