Changeset 7978
- Timestamp:
- 02/25/2014 12:10:56 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r7965 r7978 2029 2029 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $per_page; 2030 2030 2031 /** 2032 * Check the current group is the same as the supplied group ID. 2033 * It can differ when using {@link bp_group_has_members()} outside the Groups screens. 2034 */ 2035 $current_group = groups_get_current_group(); 2036 if ( ! $current_group || $current_group && $current_group->id !== bp_get_current_group_id() ) { 2037 $current_group = groups_get_group( array( 'group_id' => $r['group_id'] ) ); 2038 } 2039 2031 2040 // Assemble the base URL for pagination 2032 $base_url = trailingslashit( bp_get_group_permalink( groups_get_current_group()) . bp_current_action() );2041 $base_url = trailingslashit( bp_get_group_permalink( $current_group ) . bp_current_action() ); 2033 2042 if ( bp_action_variable() ) { 2034 2043 $base_url = trailingslashit( $base_url . bp_action_variable() );
Note: See TracChangeset
for help on using the changeset viewer.