Skip to:
Content

BuddyPress.org

Changeset 6788


Ignore:
Timestamp:
02/13/2013 07:28:43 PM (8 years ago)
Author:
djpaul
Message:

Groups wp-admin: only show "enable forums" option in metabox if bbPress 1.x is active. Fixes #4808

File:
1 edited

Legend:

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

    r6676 r6788  
    663663    $invite_status = groups_get_groupmeta( $item->id, 'invite_status' ); ?>
    664664
    665     <div class="bp-groups-settings-section" id="bp-groups-settings-section-forum">
    666         <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" <?php checked( $item->enable_forum ) ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?><br />
    667     </div>
     665    <?php if ( bp_is_active( 'forums' ) ) : ?>
     666        <div class="bp-groups-settings-section" id="bp-groups-settings-section-forum">
     667            <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" <?php checked( $item->enable_forum ) ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?><br />
     668        </div>
     669    <?php endif; ?>
    668670
    669671    <div class="bp-groups-settings-section" id="bp-groups-settings-section-status">
Note: See TracChangeset for help on using the changeset viewer.