Changeset 4269 for trunk/bp-groups/bp-groups-filters.php
- Timestamp:
- 04/23/2011 10:02:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-filters.php
r4200 r4269 67 67 // Only filter the forum SQL on group pages or on the forums directory 68 68 add_filter( 'get_topics_fields', 'groups_add_forum_fields_sql' ); 69 add_filter( 'get_topics_ index_hint','groups_add_forum_tables_sql' );69 add_filter( 'get_topics_join', 'groups_add_forum_tables_sql' ); 70 70 add_filter( 'get_topics_where', 'groups_add_forum_where_sql' ); 71 71 } … … 78 78 function groups_add_forum_tables_sql( $sql = '' ) { 79 79 global $bp; 80 return ', ' . $bp->groups->table_name . ' AS g LEFT JOIN ' . $bp->groups->table_name_groupmeta . ' AS gm ON g.id = gm.group_id '; 80 81 $sql .= ', ' . $bp->groups->table_name . ' AS g LEFT JOIN ' . $bp->groups->table_name_groupmeta . ' AS gm ON g.id = gm.group_id '; 82 83 return $sql; 81 84 } 82 85
Note: See TracChangeset
for help on using the changeset viewer.