Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2012 04:12:31 PM (8 years ago)
Author:
boonebgorges
Message:

Adds function_exists() checks for settings links.
A port of r5296 to the 1.5 branch.
Fixes #3996. See #3712. Props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/deprecated/1.5.php

    r5176 r5801  
    322322            $poster_name = bp_core_get_user_displayname( $poster_user_id );
    323323
    324             $message_link = bp_activity_get_permalink( $activity_id );
    325             $settings_link = bp_core_get_user_domain( $receiver_user_id ) . bp_get_settings_slug() . '/notifications/';
     324            $message_link  = bp_activity_get_permalink( $activity_id );
     325            $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings';
     326            $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/';
    326327
    327328            $poster_name = stripslashes( $poster_name );
Note: See TracChangeset for help on using the changeset viewer.