Skip to:
Content

BuddyPress.org

Ticket #5637: 5637.05.patch

File 5637.05.patch, 968 bytes (added by imath, 11 years ago)
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index 834e4a6..ffafbda 100644
    function bp_activity_show_filters( $context = '' ) { 
    33973397                // Set default context based on current page
    33983398                if ( empty( $context ) ) {
    33993399                        if ( bp_is_user() ) {
    3400                                 switch ( bp_current_action() ) {
    3401                                         case bp_get_groups_slug() :
    3402                                                 $context = 'member_groups';
    3403                                                 break;
    3404 
    3405                                         default :
    3406                                                 $context = 'member';
    3407                                                 break;
     3400
     3401                                if ( ! bp_is_active( 'groups' ) ) {
     3402                                        $context = 'member';
     3403                                } else {
     3404                                        switch ( bp_current_action() ) {
     3405                                                case bp_get_groups_slug() :
     3406                                                        $context = 'member_groups';
     3407                                                        break;
     3408
     3409                                                default :
     3410                                                        $context = 'member';
     3411                                                        break;
     3412                                        }
    34083413                                }
     3414                               
    34093415                        } else if ( bp_is_active( 'groups' ) && bp_is_group() ) {
    34103416                                $context = 'group';
    34113417                        } else {