Skip to:
Content

BuddyPress.org

Changeset 12908


Ignore:
Timestamp:
04/27/2021 06:59:23 AM (9 months ago)
Author:
imath
Message:

BP Nouveau: introduce a function to get active component slugs

bp_nouveau_get_component_slug() accepts the component's ID as an argument and uses the bp_get_{$component_id}_slug() corresponding function to get its slug only if the component is active.

Replace all occurences of bp_get_{$component_id}_slug() by bp_nouveau_get_component_slug( $component_id ) to prevent errors.

Fixes #8464

Location:
trunk/src/bp-templates/bp-nouveau
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/search-and-filters-bar.php

    r12907 r12908  
    99<div class="subnav-filters filters no-ajax" id="subnav-filters">
    1010
    11     <?php if ( bp_get_friends_slug() !== bp_current_component() ) : ?>
     11    <?php if ( bp_nouveau_get_component_slug( 'friends' ) !== bp_current_component() ) : ?>
    1212        <div class="subnav-search clearfix">
    1313
    14             <?php if ( bp_nouveau_is_feed_enable() ) : ?>
     14            <?php if ( bp_nouveau_get_component_slug( 'activity' ) === bp_current_component() && bp_nouveau_is_feed_enable() ) : ?>
    1515                <div id="activity-rss-feed" class="feed">
    1616                    <a href="<?php bp_nouveau_activity_rss_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_nouveau_activity_rss_tooltip(); ?>">
     
    2727    <?php if ( bp_is_user() && ! bp_is_current_action( 'requests' ) ) : ?>
    2828        <?php bp_get_template_part( 'common/filters/user-screens-filters' ); ?>
    29     <?php elseif ( bp_get_groups_slug() === bp_current_component() ) : ?>
     29    <?php elseif ( bp_nouveau_get_component_slug( 'groups' ) === bp_current_component() ) : ?>
    3030        <?php bp_get_template_part( 'common/filters/groups-screens-filters' ); ?>
    3131    <?php else : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/capabilities.php

    r12156 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 8.0.0
    77 */
    88
     
    1313</h2>
    1414
    15 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/' ); ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post">
     15<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/capabilities/' ); ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post">
    1616
    1717    <label for="user-spammer">
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/data.php

    r12272 r12908  
    44 *
    55 * @since 3.1.0
    6  * @version 3.1.0
     6 * @version 8.0.0
    77 */
    88
     
    6464
    6565<?php /* translators: Link to Delete Account Settings page */ ?>
    66 <p><?php esc_html_e( 'To erase all data associated with your account, your user account must be completely deleted.', 'buddypress' ); ?> <?php if ( bp_disable_account_deletion() ) : ?><?php esc_html_e( 'Please contact the site administrator to request account deletion.', 'buddypress' ); ?><?php else : ?><?php printf( esc_html__( 'You may delete your account by visiting the %s page.', 'buddypress' ), sprintf( '<a href="%s">%s</a>', bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account/', esc_html__( 'Delete Account', 'buddypress' ) ) ); ?><?php endif; ?></p>
     66<p><?php esc_html_e( 'To erase all data associated with your account, your user account must be completely deleted.', 'buddypress' ); ?> <?php if ( bp_disable_account_deletion() ) : ?><?php esc_html_e( 'Please contact the site administrator to request account deletion.', 'buddypress' ); ?><?php else : ?><?php printf( esc_html__( 'You may delete your account by visiting the %s page.', 'buddypress' ), sprintf( '<a href="%s">%s</a>', bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/delete-account/', esc_html__( 'Delete Account', 'buddypress' ) ) ); ?><?php endif; ?></p>
    6767
    6868<?php
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/delete-account.php

    r12773 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 7.0.0
     6 * @version 8.0.0
    77 */
    88
     
    1515<?php bp_nouveau_user_feedback( 'member-delete-account' ); ?>
    1616
    17 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account' ); ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
     17<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/delete-account' ); ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    1818
    1919    <label id="delete-account-understand" class="warn" for="delete-account-understand">
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php

    r12595 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 5.0.0
     6 * @version 8.0.0
    77 */
    88
     
    1717</p>
    1818
    19 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/general' ); ?>" method="post" class="standard-form" id="your-profile">
     19<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/general' ); ?>" method="post" class="standard-form" id="your-profile">
    2020
    2121    <?php if ( ! is_super_admin() ) : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/group-invites.php

    r12082 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 8.0.0
    77 */
    88?>
     
    2121
    2222
    23 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/invites/' ); ?>" name="account-group-invites-form" id="account-group-invites-form" class="standard-form" method="post">
     23<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/invites/' ); ?>" name="account-group-invites-form" id="account-group-invites-form" class="standard-form" method="post">
    2424
    2525    <label for="account-group-invites-preferences">
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/notifications.php

    r12082 r12908  
    1717</p>
    1818
    19 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications' ); ?>" method="post" class="standard-form" id="settings-form">
     19<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/notifications' ); ?>" method="post" class="standard-form" id="settings-form">
    2020
    2121    <?php bp_nouveau_member_email_notice_settings(); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php

    r12156 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 8.0.0
    77 */
    88
     
    1717</p>
    1818
    19 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile/' ); ?>" method="post" class="standard-form" id="settings-form">
     19<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/profile/' ); ?>" method="post" class="standard-form" id="settings-form">
    2020
    2121    <?php if ( bp_xprofile_get_settings_fields() ) : ?>
  • trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php

    r12371 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 8.0.0
    77 */
    88
     
    116116            if ( 1 === $fav_count ) {
    117117                $response['directory_tab'] = '<li id="activity-favorites" data-bp-scope="favorites" data-bp-object="activity">
    118                     <a href="' . bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/">
     118                    <a href="' . bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/">
    119119                        ' . esc_html__( 'My Favorites', 'buddypress' ) . '
    120120                    </a>
  • trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php

    r12814 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 7.0.0
     6 * @version 8.0.0
    77 */
    88
     
    227227                'slug'      => 'favorites', // slug is used because BP_Core_Nav requires it, but it's the scope
    228228                'li_class'  => array(),
    229                 'link'      => bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/',
     229                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/',
    230230                'text'      => __( 'My Favorites', 'buddypress' ),
    231231                'count'     => false,
     
    240240                'slug'      => 'friends', // slug is used because BP_Core_Nav requires it, but it's the scope
    241241                'li_class'  => array( 'dynamic' ),
    242                 'link'      => bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/',
     242                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/' . bp_nouveau_get_component_slug( 'friends' ) . '/',
    243243                'text'      => __( 'My Friends', 'buddypress' ),
    244244                'count'     => '',
     
    253253                'slug'      => 'groups', // slug is used because BP_Core_Nav requires it, but it's the scope
    254254                'li_class'  => array( 'dynamic' ),
    255                 'link'      => bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/',
     255                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/' . bp_nouveau_get_component_slug( 'groups' ) . '/',
    256256                'text'      => __( 'My Groups', 'buddypress' ),
    257257                'count'     => '',
     
    273273                'slug'      => 'mentions', // slug is used because BP_Core_Nav requires it, but it's the scope
    274274                'li_class'  => array( 'dynamic' ),
    275                 'link'      => bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/',
     275                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/mentions/',
    276276                'text'      => __( 'Mentions', 'buddypress' ),
    277277                'count'     => $count,
  • trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php

    r12907 r12908  
    515515
    516516            $buttons['activity_spam']['button_attr'][ $data_element ] = wp_nonce_url(
    517                 bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . $activity_id . '/',
     517                bp_get_root_domain() . '/' . bp_nouveau_get_component_slug( 'activity' ) . '/spam/' . $activity_id . '/',
    518518                'bp_activity_akismet_spam_' . $activity_id
    519519            );
     
    843843
    844844            $buttons['activity_comment_spam']['button_attr'][ $data_element ] = wp_nonce_url(
    845                 bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . $activity_comment_id . '/?cid=' . $activity_comment_id,
     845                bp_get_root_domain() . '/' . bp_nouveau_get_component_slug( 'activity' ) . '/spam/' . $activity_comment_id . '/?cid=' . $activity_comment_id,
    846846                'bp_activity_akismet_spam_' . $activity_comment_id
    847847            );
  • trunk/src/bp-templates/bp-nouveau/includes/ajax.php

    r12322 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 8.0.0
    77 */
    88
     
    4949        switch ( $scope ) {
    5050            case 'friends':
    51                 $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/friends/feed/';
     51                $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/friends/feed/';
    5252                break;
    5353            case 'groups':
    54                 $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/groups/feed/';
     54                $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/groups/feed/';
    5555                break;
    5656            case 'favorites':
    57                 $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/feed/';
     57                $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/feed/';
    5858                break;
    5959            case 'mentions':
    60                 $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/feed/';
     60                $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/mentions/feed/';
    6161
    6262                // Get user new mentions
  • trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php

    r12156 r12908  
    3535                'slug'      => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope
    3636                'li_class'  => array(),
    37                 'link'      => bp_loggedin_user_domain() . bp_get_blogs_slug(),
     37                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'blogs' ),
    3838                'text'      => __( 'My Sites', 'buddypress' ),
    3939                'count'     => $my_blogs_count,
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12892 r12908  
    13921392    return true;
    13931393}
     1394
     1395/**
     1396 * Gets the component's slug thanks to its ID.
     1397 *
     1398 * @since 8.0.0
     1399 *
     1400 * @param string $component_id The component ID.
     1401 * @return string The slug for the requested component ID.
     1402 */
     1403function bp_nouveau_get_component_slug( $component_id = '' ) {
     1404    $slug = '';
     1405
     1406    if ( bp_is_active( $component_id ) ) {
     1407        switch ( $component_id ) {
     1408            case 'activity':
     1409                $slug = bp_get_activity_slug();
     1410                break;
     1411            case 'blogs':
     1412                $slug = bp_get_blogs_slug();
     1413                break;
     1414            case 'friends':
     1415                $slug = bp_get_friends_slug();
     1416                break;
     1417            case 'groups':
     1418                $slug = bp_get_groups_slug();
     1419                break;
     1420            case 'messages':
     1421                $slug = bp_get_messages_slug();
     1422                break;
     1423            case 'notifications':
     1424                $slug = bp_get_notifications_slug();
     1425                break;
     1426            case 'settings':
     1427                $slug = bp_get_settings_slug();
     1428                break;
     1429            case 'xprofile':
     1430                $slug = bp_get_profile_slug();
     1431                break;
     1432        }
     1433    }
     1434
     1435    // Defaults to the component ID.
     1436    if ( ! $slug ) {
     1437        $slug = $component_id;
     1438    }
     1439
     1440    /**
     1441     * Filter here to edit the slug for the requested component ID.
     1442     *
     1443     * @since 8.0.0
     1444     *
     1445     * @param string $slug         The slug for the requested component ID.
     1446     * @param string $component_id The component ID.
     1447     */
     1448    return apply_filters( 'bp_nouveau_get_component_slug', $slug, $component_id );
     1449}
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12862 r12908  
    425425 */
    426426function bp_nouveau_groups_invites_restriction_nav() {
    427     $slug        = bp_get_settings_slug();
     427    $slug        = bp_nouveau_get_component_slug( 'settings' );
    428428    $user_domain = bp_loggedin_user_domain();
    429429
     
    455455function bp_nouveau_groups_invites_restriction_admin_nav( $wp_admin_nav ) {
    456456    // Setup the logged in user variables.
    457     $settings_link = trailingslashit( bp_loggedin_user_domain() . bp_get_settings_slug() );
     457    $settings_link = trailingslashit( bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'settings' ) );
    458458
    459459    // Add the "Group Invites" subnav item.
     
    496496        }
    497497
    498         bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() ) . 'invites/' );
     498        bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) ) . 'invites/' );
    499499    }
    500500
     
    569569                'slug'      => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope
    570570                'li_class'  => array(),
    571                 'link'      => bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups/',
     571                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'groups' ) . '/my-groups/',
    572572                'text'      => __( 'My Groups', 'buddypress' ),
    573573                'count'     => $my_groups_count,
  • trunk/src/bp-templates/bp-nouveau/includes/members/functions.php

    r12647 r12908  
    5959                'slug'      => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope
    6060                'li_class'  => array(),
    61                 'link'      => bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/',
     61                'link'      => bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'friends' ) . '/my-friends/',
    6262                'text'      => __( 'My Friends', 'buddypress' ),
    6363                'count'     => bp_get_total_friend_count( bp_loggedin_user_id() ),
  • trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r12570 r12908  
    450450                        ),
    451451                        'button_attr'       => array(
    452                             'href'  => trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ) . 'compose?r=' . bp_core_get_username( $user_id ),
     452                            'href'  => trailingslashit( bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'messages' ) ) . 'compose?r=' . bp_core_get_username( $user_id ),
    453453                            'id'    => false,
    454454                            'class' => $button_args['link_class'],
    455455                            'rel'   => '',
    456456                            'title' => '',
    457                             ),
     457                        ),
    458458                    );
    459459
  • trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php

    r12595 r12908  
    117117            'more' => __( '(and %d others)', 'buddypress' ),
    118118        ),
    119         'rootUrl' => parse_url( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ), PHP_URL_PATH ),
     119        'rootUrl' => parse_url( trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'messages' ) ), PHP_URL_PATH ),
    120120    );
    121121
     
    146146    $bp = buddypress();
    147147
    148     $secondary_nav_items = $bp->members->nav->get_secondary( array( 'parent_slug' => bp_get_messages_slug() ), false );
     148    $secondary_nav_items = $bp->members->nav->get_secondary( array( 'parent_slug' => bp_nouveau_get_component_slug( 'messages' ) ), false );
    149149
    150150    if ( empty( $secondary_nav_items ) ) {
     
    158158
    159159        if ( 'notices' === $secondary_nav_item->slug ) {
    160             bp_core_remove_subnav_item( bp_get_messages_slug(), $secondary_nav_item->slug, 'members' );
     160            bp_core_remove_subnav_item( bp_nouveau_get_component_slug( 'messages' ), $secondary_nav_item->slug, 'members' );
    161161        } elseif ( 'compose' === $secondary_nav_item->slug ) {
    162162            $bp->members->nav->edit_nav( array(
    163163                'user_has_access' => bp_is_my_profile()
    164             ), $secondary_nav_item->slug, bp_get_messages_slug() );
     164            ), $secondary_nav_item->slug, bp_nouveau_get_component_slug( 'messages' ) );
    165165        }
    166166    }
     
    175175    }
    176176
    177     $user_messages_link = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() );
     177    $user_messages_link = trailingslashit( bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'messages' ) );
    178178
    179179    foreach ( $admin_nav as $nav_iterator => $nav ) {
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12907 r12908  
    44 *
    55 * @since 3.0.0
    6  * @version 7.0.0
     6 * @version 8.0.0
    77 */
    88
     
    22402240        $output = '';
    22412241
    2242         if ( bp_get_notifications_slug() === bp_current_component() ) {
     2242        if ( bp_nouveau_get_component_slug( 'notifications' ) === bp_current_component() ) {
    22432243            $output = bp_nouveau_get_notifications_filters();
    22442244
     
    27212721
    27222722                if ( $retval ) {
    2723                     $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/feed' );
     2723                    $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/feed' );
    27242724                }
    27252725
    2726                 if ( bp_is_active( 'friends' ) && bp_is_current_action( bp_get_friends_slug() ) ) {
     2726                if ( bp_is_active( 'friends' ) && bp_is_current_action( bp_nouveau_get_component_slug( 'friends' ) ) ) {
    27272727                    $retval = bp_activity_is_feed_enable( 'friends' );
    27282728
    27292729                    if ( $retval ) {
    2730                         $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/feed' );
     2730                        $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/' . bp_nouveau_get_component_slug( 'friends' ) . '/feed' );
    27312731                    }
    2732                 } elseif ( bp_is_active( 'groups' ) && bp_is_current_action( bp_get_groups_slug() ) ) {
     2732                } elseif ( bp_is_active( 'groups' ) && bp_is_current_action( bp_nouveau_get_component_slug( 'groups' ) ) ) {
    27332733                    $retval = bp_activity_is_feed_enable( 'mygroups' );
    27342734
    27352735                    if ( $retval ) {
    2736                         $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/feed' );
     2736                        $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/' . bp_nouveau_get_component_slug( 'groups' ) . '/feed' );
    27372737                    }
    27382738                } elseif ( bp_activity_do_mentions() && bp_is_current_action( 'mentions' ) ) {
     
    27402740
    27412741                    if ( $retval ) {
    2742                         $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/mentions/feed' );
     2742                        $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/mentions/feed' );
    27432743                    }
    27442744                } elseif ( bp_activity_can_favorite() && bp_is_current_action( 'favorites' ) ) {
     
    27462746
    27472747                    if ( $retval ) {
    2748                         $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/favorites/feed' );
     2748                        $bp_nouveau->activity->current_rss_feed['link'] = trailingslashit( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/feed' );
    27492749                    }
    27502750                }
Note: See TracChangeset for help on using the changeset viewer.