Skip to:
Content

BuddyPress.org

Changeset 1416 for trunk/bp-groups.php


Ignore:
Timestamp:
04/27/2009 03:55:00 PM (15 years ago)
Author:
apeatling
Message:

Adding BP_PLUGIN_DIR to all require() calls to provide absolute paths. Fixes #965

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1408 r1416  
    88    define ( 'BP_GROUPS_SLUG', 'groups' );
    99
    10 require ( 'bp-groups/bp-groups-classes.php' );
    11 require ( 'bp-groups/bp-groups-ajax.php' );
    12 require ( 'bp-groups/bp-groups-cssjs.php' );
    13 require ( 'bp-groups/bp-groups-templatetags.php' );
    14 require ( 'bp-groups/bp-groups-widgets.php' );
    15 require ( 'bp-groups/bp-groups-filters.php' );
     10require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-classes.php' );
     11require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-ajax.php' );
     12require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-cssjs.php' );
     13require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-templatetags.php' );
     14require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-widgets.php' );
     15require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-filters.php' );
    1616
    1717
     
    150150    global $wpdb, $bp;
    151151   
    152     require ( 'bp-groups/bp-groups-admin.php' );
     152    require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-admin.php' );
    153153
    154154    /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
     
    17481748    }
    17491749   
    1750     require_once ( 'bp-groups/bp-groups-notifications.php' );
     1750    require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    17511751
    17521752    // Send friend invites.
     
    19141914
    19151915    if ( $notify_members ) {
    1916         require_once ( 'bp-groups/bp-groups-notifications.php' );
     1916        require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    19171917        groups_notification_group_updated( $group->id );
    19181918    }
     
    20402040        $admins = groups_get_group_admins( $group_id );
    20412041
    2042         require_once ( 'bp-groups/bp-groups-notifications.php' );
     2042        require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    20432043
    20442044        for ( $i = 0; $i < count( $admins ); $i++ ) {
     
    20752075
    20762076    /* Send a notification to the user. */
    2077     require_once ( 'bp-groups/bp-groups-notifications.php' );
     2077    require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    20782078    groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, true );
    20792079   
     
    20952095   
    20962096    // Send a notification to the user.
    2097     require_once ( 'bp-groups/bp-groups-notifications.php' );
     2097    require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    20982098    groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, false );
    20992099   
Note: See TracChangeset for help on using the changeset viewer.