Ticket #1585: 1585.diff
| File 1585.diff, 3.1 KB (added by , 17 years ago) |
|---|
-
bp-friends.php
312 312 return apply_filters( 'bp_friends_multiple_friendship_accepted_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/my-friends/newest" title="' . __( 'My Friends', 'buddypress' ) . '">' . sprintf( __('%d friends accepted your friendship requests', 'buddypress' ), (int)$total_items ) . '</a>', (int)$total_items ); 313 313 } else { 314 314 $user_fullname = bp_core_get_user_displayname( $item_id ); 315 $user_url = bp_core_get_ domain( $item_id );315 $user_url = bp_core_get_user_domain( $item_id ); 316 316 return apply_filters( 'bp_friends_single_friendship_accepted_notification', '<a href="' . $user_url . '?new" title="' . $user_fullname .'\'s profile">' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $user_fullname ) . '</a>', $user_fullname ); 317 317 } 318 318 break; … … 693 693 add_action( 'friends_friendship_deleted', 'bp_core_clear_cache' ); 694 694 add_action( 'friends_friendship_requested', 'bp_core_clear_cache' ); 695 695 696 ?> 697 No newline at end of file 696 ?> -
bp-friends/bp-friends-templatetags.php
43 43 <ul class="horiz-gallery"> 44 44 <?php for ( $i = 0; $i < count( $friend_ids ); $i++ ) { ?> 45 45 <li> 46 <a href="<?php echo bp_core_get_ domain( $friend_ids[$i] ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $friend_ids[$i], 'type' => 'thumb' ) ) ?></a>46 <a href="<?php echo bp_core_get_user_domain( $friend_ids[$i] ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $friend_ids[$i], 'type' => 'thumb' ) ) ?></a> 47 47 <h5><?php echo bp_core_get_userlink($friend_ids[$i]) ?></h5> 48 48 </li> 49 49 <?php } ?> … … 197 197 return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ) ); 198 198 } 199 199 add_filter( 'bp_get_total_friend_count', 'number_format' ); 200 ?> 201 No newline at end of file 200 ?> -
bp-groups.php
1515 1515 $group_id = $item_id; 1516 1516 1517 1517 $group = new BP_Groups_Group( $group_id, false, false ); 1518 $user_url = bp_core_get_ domain( $user_id );1518 $user_url = bp_core_get_user_domain( $user_id ); 1519 1519 1520 1520 if ( (int)$total_items > 1 ) { 1521 1521 return apply_filters( 'bp_groups_multiple_group_invite_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/invites/?n=1" title="' . __( 'Group Invites', 'buddypress' ) . '">' . sprintf( __('You have %d new group invitations', 'buddypress' ), (int)$total_items ) . '</a>', $total_items ); … … 2735 2735 add_action( 'groups_created_group', 'bp_core_clear_cache' ); 2736 2736 add_action( 'groups_group_avatar_updated', 'bp_core_clear_cache' ); 2737 2737 2738 ?> 2739 No newline at end of file 2738 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)