Skip to:
Content

BuddyPress.org

Ticket #5533: 5533.1.patch

File 5533.1.patch, 1.2 KB (added by fahmiadib, 10 years ago)
  • src/bp-groups/bp-groups-classes.php

    diff --git src/bp-groups/bp-groups-classes.php src/bp-groups/bp-groups-classes.php
    index 9428b8f..fa88be8 100644
    class BP_Group_Extension { 
    30453045         */
    30463046
    30473047        // The content of the group tab
    3048         public function display() {}
     3048        public function display( $group_id = null ) {}
    30493049
    30503050        // Content displayed in a widget sidebar, if applicable
    30513051        public function widget_display() {}
    class BP_Group_Extension { 
    35003500         * Hook the main display method, and loads the template file
    35013501         */
    35023502        public function _display_hook() {
    3503                 add_action( 'bp_template_content', array( &$this, 'display' ) );
     3503                add_action( 'bp_template_content', array( &$this, 'call_display' ) );
    35043504                bp_core_load_template( apply_filters( 'bp_core_template_plugin', $this->template_file ) );
    35053505        }
    35063506
    35073507        /**
     3508         * Call the display() method.
     3509         *
     3510         * @since BuddyPress (2.1.1)
     3511         */
     3512        public function call_display() {
     3513                call_user_func( array( $this, 'display' ), $this->group_id );
     3514        }
     3515
     3516        /**
    35083517         * Determine whether the current user should see this nav tab.
    35093518         *
    35103519         * Note that this controls only the display of the navigation item.