Changeset 1021 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 02/06/2009 03:07:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r933 r1021 24 24 25 25 if ( !$user_id ) 26 $user_id = $bp ['current_userid'];27 28 if ( $bp ['current_component'] != $bp['activity']['slug'] || ( $bp['current_component'] == $bp['activity']['slug'] && $bp['current_action'] == 'just-me' || $bp['current_action']== 'feed' ) ) {26 $user_id = $bp->displayed_user->id; 27 28 if ( $bp->current_component != $bp->activity->slug || ( $bp->current_component == $bp->activity->slug && $bp->current_action == 'just-me' || $bp->current_action == 'feed' ) ) { 29 29 $this->activities = BP_Activity_Activity::get_activity_for_user( $user_id, $limit ); 30 30 } else { … … 34 34 $this->activity_count = count($this->activities); 35 35 36 $this->full_name = $bp ['current_fullname'];36 $this->full_name = $bp->displayed_user->fullname; 37 37 38 38 $this->is_home = bp_is_home(); … … 99 99 global $bp, $activities_template, $bp_activity_user_id, $bp_activity_limit; 100 100 101 if ( $bp ['current_action']== 'my-friends' )101 if ( $bp->current_action == 'my-friends' ) 102 102 $filter_content = false; 103 103 else … … 105 105 106 106 if ( !$bp_activity_user_id ) 107 $bp_activity_user_id = $bp ['current_userid'];107 $bp_activity_user_id = $bp->displayed_user->id; 108 108 109 109 if ( !$bp_activity_limit ) … … 200 200 global $bp; 201 201 202 echo apply_filters( 'bp_sitewide_activity_feed_link', site_url() . '/' . $bp ['activity']['slug']. '/feed' );202 echo apply_filters( 'bp_sitewide_activity_feed_link', site_url() . '/' . $bp->activity->slug . '/feed' ); 203 203 } 204 204 … … 206 206 global $bp; 207 207 208 if ( ( $bp ['current_component'] == $bp['profile']['slug'] ) || $bp['current_action']== 'just-me' )209 echo apply_filters( 'bp_activities_member_rss_link', $bp ['current_domain'] . $bp['activity']['slug']. '/feed' );208 if ( ( $bp->current_component == $bp->profile->slug ) || $bp->current_action == 'just-me' ) 209 echo apply_filters( 'bp_activities_member_rss_link', $bp->displayed_user->domain . $bp->activity->slug . '/feed' ); 210 210 else 211 echo apply_filters( 'bp_activities_member_rss_link', $bp ['current_domain'] . $bp['activity']['slug']. '/my-friends/feed' );211 echo apply_filters( 'bp_activities_member_rss_link', $bp->displayed_user->domain . $bp->activity->slug . '/my-friends/feed' ); 212 212 } 213 213
Note: See TracChangeset
for help on using the changeset viewer.