Skip to:
Content

BuddyPress.org

Changeset 4918


Ignore:
Timestamp:
08/01/2011 01:24:39 PM (10 years ago)
Author:
boonebgorges
Message:

Ensure that exclude and in params for BP_Activity_Template::construct() have default values, for backward compatibility. Fixes #3421

File:
1 edited

Legend:

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

    r4907 r4918  
    109109    var $full_name;
    110110
    111     function bp_activity_template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in ) {
     111    function bp_activity_template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude = false, $in = false ) {
    112112        $this->__construct( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in );
    113113    }
    114114
    115     function __construct( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude, $in ) {
     115    function __construct( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude = false, $in = false ) {
    116116        global $bp;
    117117
Note: See TracChangeset for help on using the changeset viewer.