Skip to:
Content

BuddyPress.org

Changeset 6175


Ignore:
Timestamp:
07/11/2012 08:49:03 PM (12 years ago)
Author:
djpaul
Message:

Avoid calling a Groups component function in the Activity stream if the Groups component has been disabled. Fixes #4335, props boonebgorges, DJPaul

File:
1 edited

Legend:

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

    r6172 r6175  
    10631063
    10641064                if ( empty( $alt ) ) {
    1065                     $group = groups_get_group( $item_id );
    1066                     if ( isset( $group->name ) ) {
    1067                         $alt = sprintf( __( 'Group logo of %s', 'buddypress' ), $group->name );
    1068                     } else {
    1069                         $alt = __( 'Group logo', 'buddypress' );
     1065                    $alt = __( 'Group logo', 'buddypress' );
     1066
     1067                    if ( bp_is_active( 'groups' ) ) {
     1068                        $group = groups_get_group( $item_id );
     1069                        if ( isset( $group->name ) )
     1070                            $alt = sprintf( __( 'Group logo of %s', 'buddypress' ), $group->name );
    10701071                    }
    10711072                }
Note: See TracChangeset for help on using the changeset viewer.