Changeset 570
- Timestamp:
- 11/21/2008 10:50:45 PM (17 years ago)
- Location:
- trunk/bp-groups
- Files:
-
- 2 edited
-
bp-groups-admin.php (modified) (2 diffs)
-
bp-groups-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-admin.php
r525 r570 37 37 <input id="post-query-submit" class="button" type="submit" value="Search Groups"/> 38 38 </form> 39 39 40 40 <?php if ( bp_has_groups('15') ) : ?> 41 41 <form id="bp-group-admin-list" method="post" action="<?php $_SERVER['PHP_SELF'] ?>"> … … 139 139 <?php else: ?> 140 140 141 <?php if ( bp_group_show_no_groups_message() ) : ?>142 141 <div id="message" class="info"> 143 142 <p><?php _e( 'No groups to display', 'buddypress' ) ?></p> 144 143 </div> 145 <?php endif; ?>146 144 147 145 <?php endif;?> -
trunk/bp-groups/bp-groups-templatetags.php
r554 r570 22 22 if ( !$user_id ) 23 23 $user_id = $current_user->id; 24 24 25 25 $this->pag_page = isset( $_REQUEST['fpage'] ) ? intval( $_REQUEST['fpage'] ) : 1; 26 26 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $groups_per_page; 27 27 28 if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] == '' ) || ( !$bp['current_action'] && $_REQUEST['group-filter-box'] == '' ) ) {28 if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] == '' ) || ( !$bp['current_action'] && !isset($_REQUEST['page']) && $_REQUEST['group-filter-box'] == '' ) ) { 29 29 30 30 $this->groups = groups_get_user_groups( $this->pag_num, $this->pag_page ); … … 33 33 $this->group_count = count($this->groups); 34 34 35 } else if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] != '' ) || ( !$bp['current_action'] && $_REQUEST['group-filter-box'] != '' ) ) {35 } else if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] != '' ) || ( !$bp['current_action'] && !isset($_REQUEST['page']) && $_REQUEST['group-filter-box'] != '' ) ) { 36 36 37 37 $this->groups = groups_filter_user_groups( $_REQUEST['group-filter-box'], $this->pag_num, $this->pag_page ); … … 76 76 77 77 } 78 78 79 79 $this->pag_links = paginate_links( array( 80 80 'base' => add_query_arg( array( 'fpage' => '%#%', 'num' => $this->pag_num, 's' => $_REQUEST['s'], 'sortby' => $this->sort_by, 'order' => $this->order ) ),
Note: See TracChangeset
for help on using the changeset viewer.