Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/06/2009 03:07:48 AM (17 years ago)
Author:
apeatling
Message:

Converted $bp as an array to $bp as an object. See this post for more info: http://buddypress.org/forums/topic.php?id=1125

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/member-themes/buddypress-member/functions.php

    r875 r1021  
    1111        global $bp, $is_single_group;
    1212
    13         if ( !bp_is_home() && $bp['current_component'] == 'profile' ||
    14                                                   $bp['current_component'] == 'blog' ||
    15                                                   $bp['current_component'] == 'friends' ||
    16                                                   $bp['current_component'] == 'blogs' ) {
    17                 if ( $bp['current_userid'] != $bp['loggedin_userid'] )
     13        if ( !bp_is_home() && $bp->current_component == 'profile' ||
     14                                                  $bp->current_component == 'blog' ||
     15                                                  $bp->current_component == 'friends' ||
     16                                                  $bp->current_component == 'blogs' ) {
     17                if ( $bp->displayed_user->id != $bp->loggedin_user->id )
    1818                        echo ' class="arrow"';
    1919        }
    2020       
    21         if ( ( $bp['current_component'] == 'groups' && $is_single_group ) || ( $bp['current_component'] == 'groups' && !bp_is_home() ) )
     21        if ( ( $bp->current_component == 'groups' && $is_single_group ) || ( $bp->current_component == 'groups' && !bp_is_home() ) )
    2222                echo ' class="arrow"'; 
    2323}
     
    2626        global $bp;
    2727
    28         if ( ($bp['current_userid'] != $bp['loggedin_userid']) )
     28        if ( ($bp->displayed_user->id != $bp->loggedin_user->id) )
    2929                echo ' class="icons"';
    3030}
Note: See TracChangeset for help on using the changeset viewer.