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-template.php

    r3966 r4211  
    2121
    2222        function bp_messages_box_template( $user_id, $box, $per_page, $max, $type ) {
     23                $this->__construct( $user_id, $box, $per_page, $max, $type );
     24        }
     25
     26        function __construct( $user_id, $box, $per_page, $max, $type ) {
    2327                $this->pag_page = isset( $_GET['mpage'] ) ? intval( $_GET['mpage'] ) : 1;
    2428                $this->pag_num  = isset( $_GET['num'] ) ? intval( $_GET['num'] ) : $per_page;
    … …  
    612616
    613617        function bp_messages_thread_template( $thread_id, $order ) {
     618                $this->__construct( $thread_id, $order );
     619        }
     620
     621        function __construct( $thread_id, $order ) {
    614622                global $bp;
    615623
Note: See TracChangeset for help on using the changeset viewer.