Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 10:18:26 PM (12 years ago)
Author:
boonebgorges
Message:

Ensures links are constructed with trailing slash in forums and friends components. See #3779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-notifications.php

    r5296 r5416  
    1616    $all_requests_link = bp_core_get_user_domain( $friend_id ) . bp_get_friends_slug() . '/requests/';
    1717    $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' );
    1919    $initiator_link   = bp_core_get_user_domain( $initiator_id );
    2020
     
    6060    $friend_link   = bp_core_get_user_domain( $friend_id );
    6161    $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' );
    6363
    6464    // Set up and send the message
Note: See TracChangeset for help on using the changeset viewer.