Ticket #3148: 3148-3.diff
File 3148-3.diff, 3.9 KB (added by , 14 years ago) |
---|
-
bp-groups/bp-groups-template.php
71 71 var $order; 72 72 73 73 function bp_groups_template( $user_id, $type, $page, $per_page, $max, $slug, $search_terms, $include, $populate_extras, $exclude, $show_hidden ) { 74 $this->__construct( $user_id, $type, $page, $per_page, $max, $slug, $search_terms, $include, $populate_extras, $exclude, $show_hidden ); 75 } 76 77 function __construct( $user_id, $type, $page, $per_page, $max, $slug, $search_terms, $include, $populate_extras, $exclude, $show_hidden ){ 78 74 79 global $bp; 75 80 76 81 $this->pag_page = isset( $_REQUEST['grpage'] ) ? intval( $_REQUEST['grpage'] ) : $page; … … 1447 1452 var $total_group_count; 1448 1453 1449 1454 function bp_groups_group_members_template( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ) { 1455 $this->__construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ); 1456 } 1457 1458 function __construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ) { 1450 1459 global $bp; 1451 1460 1452 1461 $this->pag_page = isset( $_REQUEST['mlpage'] ) ? intval( $_REQUEST['mlpage'] ) : 1; … … 2133 2142 var $total_request_count; 2134 2143 2135 2144 function bp_groups_membership_requests_template( $group_id, $per_page, $max ) { 2145 $this->__construct( $group_id, $per_page, $max ); 2146 } 2147 2148 2149 function __construct( $group_id, $per_page, $max ) { 2150 2136 2151 global $bp; 2137 2152 2138 2153 $this->pag_page = isset( $_REQUEST['mrpage'] ) ? intval( $_REQUEST['mrpage'] ) : 1; … … 2303 2318 var $total_invite_count; 2304 2319 2305 2320 function bp_groups_invite_template( $user_id, $group_id ) { 2306 global $bp; 2321 $this->__construct( $user_id, $group_id ); 2322 } 2323 2324 function __construct( $user_id, $group_id ) { 2307 2325 2326 global $bp; 2327 2308 2328 $this->invites = groups_get_invites_for_group( $user_id, $group_id ); 2309 2329 $this->invite_count = count( $this->invites ); 2330 2310 2331 } 2311 2332 2312 2333 function has_invites() { -
bp-activity/bp-activity-template.php
80 80 var $full_name; 81 81 82 82 function bp_activity_template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in ) { 83 $this->__construct( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in ); 84 } 85 86 function __construct( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in ) { 83 87 global $bp; 84 88 85 89 $this->pag_page = isset( $_REQUEST['acpage'] ) ? intval( $_REQUEST['acpage'] ) : $page; -
bp-xprofile/bp-xprofile-classes.php
7 7 var $can_delete; 8 8 var $group_order; 9 9 var $fields; 10 10 11 11 function bp_xprofile_group( $id = null ) { 12 $this->__construct($id); 13 } 14 15 function __construct( $id = null ) { 12 16 global $bp, $wpdb; 13 17 14 18 if ( $id ) … … 280 284 var $data; 281 285 var $message = null; 282 286 var $message_type = 'err'; 283 287 284 288 function bp_xprofile_field( $id = null, $user_id = null, $get_data = true ) { 289 $this->__construct( $id, $user_id, $get_data ); 290 } 291 292 function __construct( $id = null, $user_id = null, $get_data = true ) { 285 293 if ( $id ) 286 294 $this->populate( $id, $user_id, $get_data ); 287 295 } … … 742 750 var $field_id; 743 751 var $value; 744 752 var $last_updated; 745 753 746 754 function bp_xprofile_profiledata( $field_id = null, $user_id = null ) { 755 $this->__construct( $field_id, $user_id ); 756 } 757 758 function __construct( $field_id = null, $user_id = null ) { 747 759 if ( $field_id ) 748 760 $this->populate( $field_id, $user_id ); 749 761 }