Changeset 5433
- Timestamp:
- 12/01/2011 09:38:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-template.php
r5379 r5433 152 152 // Profile > Forums > Replied To 153 153 $topic_count = bp_forums_total_replied_count_for_user( bp_displayed_user_id(), $type ); 154 } else if ( 'tags' == $type ) { 155 $tag = bb_get_tag( $search_terms ); 156 $topic_count = $tag->count; 154 157 } else { 155 158 // For forum directories (All Topics), get a true count … … 416 419 $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, 'all', $search_terms ); 417 420 } 418 421 419 422 return apply_filters( 'bp_has_topics', $forum_template->has_topics(), $forum_template ); 420 423 } … … 972 975 } 973 976 974 975 977 class BP_Forums_Template_Topic { 976 978 var $current_post = -1;
Note: See TracChangeset
for help on using the changeset viewer.