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

    r3903 r4211  
    1010
    1111        function bp_messages_thread ( $thread_id = false, $order = 'ASC' ) {
     12                $this->__construct( $thread_id, $order);
     13        }
     14
     15        function __construct( $thread_id = false, $order = 'ASC' ) {
    1216                if ( $thread_id )
    1317                        $this->populate( $thread_id, $order );
    … …  
    246250
    247251        function bp_messages_message( $id = null ) {
     252                $this->__construct( $id );
     253        }
     254       
     255        function __construct( $id = null ) {
    248256                global $bp;
    249257
    … …  
    363371
    364372        function bp_messages_notice( $id = null ) {
     373                $this->__construct($id);
     374        }
     375       
     376        function __construct( $id = null ) {
    365377                if ( $id ) {
    366378                        $this->id = $id;
Note: See TracChangeset for help on using the changeset viewer.