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/activity/index.php

    r3460 r3698  
    2626                        <?php do_action( 'bp_before_activity_type_tab_friends' ) ?>
    2727
    28                         <?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?>
     28                        <?php if ( bp_is_active( 'friends' ) ) : ?>
    2929                            <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    3030                                <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
     
    3434                        <?php do_action( 'bp_before_activity_type_tab_groups' ) ?>
    3535
    36                         <?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>
     36                        <?php if ( bp_is_active( 'groups' ) ) : ?>
    3737                            <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    3838                                <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.