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-core/bp-core-classes.php

    r3917 r4211  
    3232
    3333        function bp_core_user( $user_id, $populate_extras = false ) {
     34                $this->__construct( $user_id, $populate_extras );
     35        }
     36
     37                function __construct( $user_id, $populate_extras = false ) {
    3438                if ( $user_id ) {
    3539                        $this->id = $user_id;
    … …  
    447451
    448452        function bp_core_notification( $id = false ) {
     453                $this->__construct($id);
     454        }
     455               
     456        function __construct( $id = false ) {
    449457                if ( $id ) {
    450458                        $this->id = $id;
    … …  
    590598         */
    591599        function bp_button( $args = '' ) {
     600                $this->__construct($args);
     601        }
     602       
     603        function __construct( $args = '' ) {
    592604
    593605                // Default arguments
Note: See TracChangeset for help on using the changeset viewer.