Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2012 06:03:00 PM (12 years ago)
Author:
r-a-y
Message:

EOF:

  • Fall in line with WordPress 3.4 coding practices by removing all EOF closing PHP tags.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r6321 r6342  
    5959        global $wpdb, $bp;
    6060
    61         if ( $group = $wpdb->get_row( $wpdb->prepare( "SELECT g.* FROM {$bp->groups->table_name} g WHERE g.id = %d", $this->id ) ) ) {         
     61        if ( $group = $wpdb->get_row( $wpdb->prepare( "SELECT g.* FROM {$bp->groups->table_name} g WHERE g.id = %d", $this->id ) ) ) {
    6262            bp_groups_update_meta_cache( $this->id );
    63                        
     63
    6464            $this->id                 = $group->id;
    6565            $this->creator_id         = $group->creator_id;
     
    7373            $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' );
    7474            $this->is_member          = BP_Groups_Member::check_is_member( bp_loggedin_user_id(), $this->id );
    75            
     75
    7676            // If this is a private or hidden group, does the current user have access?
    7777            if ( 'private' == $this->status || 'hidden' == $this->status ) {
     
    160160
    161161        do_action_ref_array( 'groups_group_after_save', array( &$this ) );
    162        
     162
    163163        wp_cache_delete( 'bp_groups_group_' . $this->id, 'bp' );
    164164
     
    451451            $group_ids[] = $group->id;
    452452        }
    453        
     453
    454454        // Populate some extra information instead of querying each time in the loop
    455455        if ( !empty( $populate_extras ) ) {
     
    457457            $paged_groups = BP_Groups_Group::get_group_extras( $paged_groups, $group_ids, $type );
    458458        }
    459        
     459
    460460        // Grab all groupmeta
    461461        bp_groups_update_meta_cache( $group_ids );
     
    858858                return false;
    859859            }
    860            
     860
    861861            $sql = $wpdb->prepare( "INSERT INTO {$bp->groups->table_name_members} ( user_id, group_id, inviter_id, is_admin, is_mod, is_banned, user_title, date_modified, is_confirmed, comments, invite_sent ) VALUES ( %d, %d, %d, %d, %d, %d, %s, %s, %d, %s, %d )", $this->user_id, $this->group_id, $this->inviter_id, $this->is_admin, $this->is_mod, $this->is_banned, $this->user_title, $this->date_modified, $this->is_confirmed, $this->comments, $this->invite_sent );
    862862        }
     
    13121312    var $name = false;
    13131313    var $slug = false;
    1314    
     1314
    13151315    // The name/slug of the Group Admin tab for this extension
    13161316    var $admin_name = '';
     
    13591359    function _register() {
    13601360        global $bp;
    1361        
     1361
    13621362        // If admin/create names and slugs are not provided, they fall back on the main
    13631363        // name and slug for the extension
     
    13651365            $this->admin_name = $this->name;
    13661366        }
    1367        
     1367
    13681368        if ( !$this->admin_slug ) {
    13691369            $this->admin_slug = $this->slug;
    13701370        }
    1371        
     1371
    13721372        if ( !$this->create_name ) {
    13731373            $this->create_name = $this->name;
    13741374        }
    1375        
     1375
    13761376        if ( !$this->create_slug ) {
    13771377            $this->create_slug = $this->slug;
     
    14791479    ' ), 11 );
    14801480}
    1481 
    1482 ?>
Note: See TracChangeset for help on using the changeset viewer.