Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 07:32:48 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Prebeta code clean-up - see #3367:

  • Remove PHP4 constructors on loader classes
  • Remove class functions that start with underscores
  • Use require() rather than require_once() where appropriate
  • Remove background color on messages activity time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-functions.php

    r4770 r4775  
    3535
    3636            // Send the email notification
    37             require_once( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
     37            require( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
    3838            friends_notification_new_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    3939
     
    108108
    109109        // Send the email notification
    110         require_once( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
     110        require( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
    111111        friends_notification_accepted_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    112112
Note: See TracChangeset for help on using the changeset viewer.