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-groups/bp-groups-functions.php

    r4770 r4775  
    124124
    125125    if ( $notify_members ) {
    126         require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     126        require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    127127        groups_notification_group_updated( $group->id );
    128128    }
     
    523523    // Require the notifications code so email notifications can be set on
    524524    // the 'bp_activity_posted_update' action.
    525     require_once( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     525    require( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    526526
    527527    groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
     
    636636    global $bp;
    637637
    638     require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     638    require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    639639
    640640    if ( !$user_id )
     
    776776        $admins = groups_get_group_admins( $group_id );
    777777
    778         require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     778        require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    779779
    780780        // Saved okay, now send the email notification
     
    821821
    822822    // Send a notification to the user.
    823     require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     823    require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    824824    groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, true );
    825825
     
    834834
    835835    // Send a notification to the user.
    836     require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
     836    require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
    837837    groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, false );
    838838
Note: See TracChangeset for help on using the changeset viewer.