Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/16/2011 04:47:36 PM (16 years ago)
Author:
djpaul
Message:

Add PHP5-style constructors to classes. Fixes #3148, props Backie

File:
1 edited

Legend:

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

    r4168 r4211  
    1616
    1717        function bp_groups_group( $id = null ) {
     18                $this->__construct($id);
     19        }
     20
     21        function __construct( $id = null ) {
    1822                if ( $id ) {
    1923                        $this->id = $id;
    … …  
    605609
    606610        function bp_groups_member( $user_id = 0, $group_id = 0, $id = false, $populate = true ) {
     611                $this->__construct($user_id,$group_id,$id,$populate);
     612        }
     613       
     614        function __construct( $user_id = 0, $group_id = 0, $id = false, $populate = true ) {
    607615                if ( $user_id && $group_id && !$id ) {
    608616                        $this->user_id = $user_id;
Note: See TracChangeset for help on using the changeset viewer.