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/bp-xprofile/bp-xprofile-notifications.php

    r565 r1021  
    2222        global $bp, $current_user;
    2323       
    24         if ( $bp['current_component'] == $bp['wire']['slug'] && !bp_is_home() ) {
     24        if ( $bp->current_component == $bp->wire->slug && !bp_is_home() ) {
    2525                bp_core_add_notification( $poster_id, $user_id, 'xprofile', 'new_wire_post' );
    2626
    27                 if ( !get_usermeta( $bp['loggedin_userid'], 'notification_profile_wire_post' ) || get_usermeta( $bp['loggedin_userid'], 'notification_profile_wire_post' ) == 'yes' ) {
     27                if ( !get_usermeta( $bp->loggedin_user->id, 'notification_profile_wire_post' ) || get_usermeta( $bp->loggedin_user->id, 'notification_profile_wire_post' ) == 'yes' ) {
    2828                        $poster_name = bp_fetch_user_fullname( $poster_id, false );
    29                         $wire_post = new BP_Wire_Post( $bp['profile']['table_name_wire'], $wire_post_id, true );
     29                        $wire_post = new BP_Wire_Post( $bp->profile->table_name_wire, $wire_post_id, true );
    3030                        $ud = get_userdata($user_id);
    3131                       
Note: See TracChangeset for help on using the changeset viewer.