Skip to:
Content

BuddyPress.org

Changeset 1416 for trunk/bp-friends.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-friends.php

    r1408 r1416  
    88    define ( 'BP_FRIENDS_SLUG', 'friends' );
    99
    10 require ( 'bp-friends/bp-friends-classes.php' );
    11 require ( 'bp-friends/bp-friends-ajax.php' );
    12 require ( 'bp-friends/bp-friends-cssjs.php' );
    13 require ( 'bp-friends/bp-friends-templatetags.php' );
     10require ( BP_PLUGIN_DIR . '/bp-friends/bp-friends-classes.php' );
     11require ( BP_PLUGIN_DIR . '/bp-friends/bp-friends-ajax.php' );
     12require ( BP_PLUGIN_DIR . '/bp-friends/bp-friends-cssjs.php' );
     13require ( BP_PLUGIN_DIR . '/bp-friends/bp-friends-templatetags.php' );
    1414
    1515/**************************************************************************
     
    521521       
    522522        // Send the email notification
    523         require_once( 'bp-friends/bp-friends-notifications.php' );
     523        require_once( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
    524524        friends_notification_new_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    525525       
     
    582582       
    583583        // Send the email notification
    584         require_once( 'bp-friends/bp-friends-notifications.php' );
     584        require_once( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
    585585        friends_notification_accepted_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    586586
Note: See TracChangeset for help on using the changeset viewer.