Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (15 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

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

    r4063 r4137  
    702702            return false;
    703703
    704         if ( !function_exists( 'bp_forums_get_forum_topicpost_count' ) )
     704        if ( !bp_is_active( 'forums' ) )
    705705            return false;
    706706
     
    736736            return false;
    737737
    738         if ( !function_exists( 'bp_forums_get_forum_topicpost_count' ) )
     738        if ( !bp_is_active( 'forums' ) )
    739739            return false;
    740740
     
    760760        $group =& $groups_template->group;
    761761
    762     if ( function_exists( 'bp_forums_is_installed_correctly' ) ) {
     762    if ( bp_is_active( 'forums' ) ) {
    763763        if ( bp_forums_is_installed_correctly() ) {
    764764            if ( $group->enable_forum )
Note: See TracChangeset for help on using the changeset viewer.