Changeset 5416
- Timestamp:
- 11/29/2011 10:18:26 PM (13 years ago)
- Location:
- trunk/bp-friends
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-activity.php
r5302 r5416 70 70 switch ( $action ) { 71 71 case 'friendship_accepted': 72 $link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/newest';72 $link = trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/newest' ); 73 73 74 74 // Set up the string and the filter … … 84 84 85 85 case 'friendship_request': 86 $link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests ?new';86 $link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/?new'; 87 87 88 88 // Set up the string and the filter -
trunk/bp-friends/bp-friends-notifications.php
r5296 r5416 16 16 $all_requests_link = bp_core_get_user_domain( $friend_id ) . bp_get_friends_slug() . '/requests/'; 17 17 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 18 $settings_link = bp_core_get_user_domain( $friend_id ) . $settings_slug . '/notifications';18 $settings_link = trailingslashit( bp_core_get_user_domain( $friend_id ) . $settings_slug . '/notifications' ); 19 19 $initiator_link = bp_core_get_user_domain( $initiator_id ); 20 20 … … 60 60 $friend_link = bp_core_get_user_domain( $friend_id ); 61 61 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 62 $settings_link = bp_core_get_user_domain( $initiator_id ) . $settings_slug . '/notifications';62 $settings_link = trailingslashit( bp_core_get_user_domain( $initiator_id ) . $settings_slug . '/notifications' ); 63 63 64 64 // Set up and send the message -
trunk/bp-friends/bp-friends-screens.php
r5302 r5416 30 30 bp_core_add_message( __( 'Friendship could not be accepted', 'buddypress' ), 'error' ); 31 31 32 bp_core_redirect( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() );32 bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) ); 33 33 34 34 } elseif ( bp_is_action_variable( 'reject', 0 ) && is_numeric( bp_action_variable( 1 ) ) ) { … … 41 41 bp_core_add_message( __( 'Friendship could not be rejected', 'buddypress' ), 'error' ); 42 42 43 bp_core_redirect( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() );43 bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) ); 44 44 } 45 45 -
trunk/bp-friends/bp-friends-template.php
r5302 r5416 60 60 global $bp; ?> 61 61 62 <li<?php if ( !bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_friends_slug() ?>/my-friends/recently-active"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li>63 <li<?php if ( bp_is_action_variable( 'newest', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_friends_slug() ?>/my-friends/newest"><?php _e( 'Newest', 'buddypress' ) ?></a></li>64 <li<?php if ( bp_is_action_variable( 'alphabetically', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_friends_slug() ?>/my-friends/alphabetically"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li>62 <li<?php if ( !bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain . bp_get_friends_slug() . '/my-friends/recently-active' ) ?>"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li> 63 <li<?php if ( bp_is_action_variable( 'newest', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain . bp_get_friends_slug() . '/my-friends/newest' ) ?>"><?php _e( 'Newest', 'buddypress' ) ?></a></li> 64 <li<?php if ( bp_is_action_variable( 'alphabetically', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain . bp_get_friends_slug() . '/my-friends/alphabetically' ) ?>"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li> 65 65 66 66 <?php … … 99 99 100 100 <div class="info-group"> 101 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( bp_displayed_user_id() ) ?>) <span><a href="<?php echo $bp->displayed_user->domain . bp_get_friends_slug() ?>"><?php _e('See All', 'buddypress') ?></a></span></h4>101 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( bp_displayed_user_id() ) ?>) <span><a href="<?php echo trailingslashit( $bp->displayed_user->domain . bp_get_friends_slug() ) ?>"><?php _e('See All', 'buddypress') ?></a></span></h4> 102 102 103 103 <?php if ( $friend_ids ) { ?>
Note: See TracChangeset
for help on using the changeset viewer.