Skip to:
Content

BuddyPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r4149 r4211  
    7070
    7171        function BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ) {
     72                $this->__construct( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms );
     73        }
     74
     75        function __construct( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ) {       
    7276                global $bp;
    7377
     
    790794
    791795        function BP_Forums_Template_Topic( $topic_id, $per_page, $max, $order ) {
     796                $this->__construct( $topic_id, $per_page, $max, $order );
     797        }
     798               
     799        function __construct( $topic_id, $per_page, $max, $order ) {
    792800                global $bp, $current_user, $forum_template;
    793801
Note: See TracChangeset for help on using the changeset viewer.