diff --git src/bp-groups/bp-groups-classes.php src/bp-groups/bp-groups-classes.php
index 9428b8f..fa88be8 100644
|
|
class BP_Group_Extension { |
3045 | 3045 | */ |
3046 | 3046 | |
3047 | 3047 | // The content of the group tab |
3048 | | public function display() {} |
| 3048 | public function display( $group_id = null ) {} |
3049 | 3049 | |
3050 | 3050 | // Content displayed in a widget sidebar, if applicable |
3051 | 3051 | public function widget_display() {} |
… |
… |
class BP_Group_Extension { |
3500 | 3500 | * Hook the main display method, and loads the template file |
3501 | 3501 | */ |
3502 | 3502 | public function _display_hook() { |
3503 | | add_action( 'bp_template_content', array( &$this, 'display' ) ); |
| 3503 | add_action( 'bp_template_content', array( &$this, 'call_display' ) ); |
3504 | 3504 | bp_core_load_template( apply_filters( 'bp_core_template_plugin', $this->template_file ) ); |
3505 | 3505 | } |
3506 | 3506 | |
3507 | 3507 | /** |
| 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 | /** |
3508 | 3517 | * Determine whether the current user should see this nav tab. |
3509 | 3518 | * |
3510 | 3519 | * Note that this controls only the display of the navigation item. |