Skip to:
Content

BuddyPress.org

Ticket #4979: 4979.diff

File 4979.diff, 994 bytes (added by imath, 7 years ago)
  • bp-groups/bp-groups-activity.php

     
    2121
    2222        bp_activity_set_action( $bp->groups->id, 'created_group',   __( 'Created a group',       'buddypress' ) );
    2323        bp_activity_set_action( $bp->groups->id, 'joined_group',    __( 'Joined a group',        'buddypress' ) );
    24         bp_activity_set_action( $bp->groups->id, 'new_forum_topic', __( 'New group forum topic', 'buddypress' ) );
    25         bp_activity_set_action( $bp->groups->id, 'new_forum_post',  __( 'New group forum post',  'buddypress' ) );
     24       
     25        if( bp_is_active( 'forums' ) ) {
     26                bp_activity_set_action( $bp->groups->id, 'new_forum_topic', __( 'New group forum topic', 'buddypress' ) );
     27                bp_activity_set_action( $bp->groups->id, 'new_forum_post',  __( 'New group forum post',  'buddypress' ) );
     28        }       
    2629
    2730        do_action( 'groups_register_activity_actions' );
    2831}