Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/11/2011 05:41:53 PM (11 years ago)
Author:
djpaul
Message:

Swap function_exists calls to bp_is_active in BP-Default. See #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/create.php

    r3460 r3698  
    4141                    <?php do_action( 'bp_before_group_settings_creation_step' ); ?>
    4242
    43                     <?php if ( function_exists('bp_wire_install') ) : ?>
    44                     <div class="checkbox">
    45                         <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( bp_get_new_group_enable_wire() ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire', 'buddypress') ?></label>
    46                     </div>
    47                     <?php endif; ?>
    48 
    49                     <?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?>
     43                    <?php if ( bp_is_active( 'forums' ) ) : ?>
    5044                        <?php if ( bp_forums_is_installed_correctly() ) : ?>
    5145                            <div class="checkbox">
     
    157151                    <?php do_action( 'bp_before_group_invites_creation_step' ); ?>
    158152
    159                     <?php if ( function_exists( 'bp_get_total_friend_count' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
     153                    <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    160154                        <div class="left-menu">
    161155
Note: See TracChangeset for help on using the changeset viewer.