Skip to:
Content

BuddyPress.org

Ticket #1728: 1728.005.diff

File 1728.005.diff, 891 bytes (added by cnorris23, 14 years ago)

make sure xprofile constants aren't already defined

  • bp-xprofile.php

     
    2222                define ( 'BP_XPROFILE_SLUG', 'profile' );
    2323
    2424        /* Assign the base group and fullname field names to constants to use in SQL statements */
    25         define ( 'BP_XPROFILE_BASE_GROUP_NAME', $bp->site_options['bp-xprofile-base-group-name'] );
    26         define ( 'BP_XPROFILE_FULLNAME_FIELD_NAME', $bp->site_options['bp-xprofile-fullname-field-name'] );
     25        if ( !defined( 'BP_XPROFILE_BASE_GROUP_NAME' ) )
     26                define ( 'BP_XPROFILE_BASE_GROUP_NAME', $bp->site_options['bp-xprofile-base-group-name'] );
     27        if ( !defined( 'BP_XPROFILE_FULLNAME_FIELD_NAME' ) )
     28                define ( 'BP_XPROFILE_FULLNAME_FIELD_NAME', $bp->site_options['bp-xprofile-fullname-field-name'] );
    2729
    2830        /* For internal identification */
    2931        $bp->profile->id = 'profile';