Skip to:
Content

BuddyPress.org

Ticket #945: 945-jjj.patch

File 945-jjj.patch, 1.2 KB (added by johnjamesjacoby, 15 years ago)

Patch bp-xprofile-templatetags.php

  • bp-xprofile-templatetags.php

     
    547547                }
    548548               
    549549                if ( $groups[$i]->fields )
    550                         echo '<li' . $selected . '><a href="' . $bp->loggedin_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id . '">' . $groups[$i]->name . '</a></li>';
     550                        echo '<li' . $selected . '><a href="' . $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id . '">' . $groups[$i]->name . '</a></li>';
    551551        }
    552552       
    553553        do_action( 'xprofile_profile_group_tabs' );
     
    592592        global $bp;
    593593       
    594594        if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) )
    595                 bp_core_avatar_admin( null, $bp->loggedin_user->domain . $bp->profile->slug . '/change-avatar/', $bp->loggedin_user->domain . $bp->profile->slug . '/delete-avatar/' );
     595                bp_core_avatar_admin( null, $bp->displayed_user->domain . $bp->profile->slug . '/change-avatar/', $bp->displayed_user->domain . $bp->profile->slug . '/delete-avatar/' );
    596596        else
    597597                _e( 'Avatar uploads are currently disabled. Why not use a <a href="http://gravatar.com" target="_blank">gravatar</a> instead?', 'buddypress' );
    598598}