Changeset 4654 for trunk/includes/forums/functions.php
- Timestamp:
- 12/25/2012 07:35:37 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/functions.php
r4551 r4654 930 930 // Get some counts 931 931 $forum_id = bbp_get_forum_id( $forum_id ); 932 $topic_count = bbp_get_forum_topic_count( $forum_id, false, false );933 $total_topic_count = bbp_get_forum_topic_count( $forum_id, true, false );932 $topic_count = bbp_get_forum_topic_count( $forum_id, false, true ); 933 $total_topic_count = bbp_get_forum_topic_count( $forum_id, true, true ); 934 934 935 935 // Update this forum id … … 949 949 950 950 // Get forum counts 951 $parent_topic_count = bbp_get_forum_topic_count( $parent_forum_id, false, false );952 $parent_total_topic_count = bbp_get_forum_topic_count( $parent_forum_id, true, false );951 $parent_topic_count = bbp_get_forum_topic_count( $parent_forum_id, false, true ); 952 $parent_total_topic_count = bbp_get_forum_topic_count( $parent_forum_id, true, true ); 953 953 954 954 // Update counts … … 979 979 // Get some counts 980 980 $forum_id = bbp_get_forum_id( $forum_id ); 981 $topic_count = bbp_get_forum_topic_count_hidden( $forum_id, false );981 $topic_count = bbp_get_forum_topic_count_hidden( $forum_id, true ); 982 982 $new_count = (int) $topic_count + (int) $difference; 983 983 … … 1006 1006 // Get some counts 1007 1007 $forum_id = bbp_get_forum_id( $forum_id ); 1008 $topic_count = bbp_get_forum_reply_count( $forum_id, false );1009 $total_reply_count = bbp_get_forum_reply_count( $forum_id, true 1008 $topic_count = bbp_get_forum_reply_count( $forum_id, false, true ); 1009 $total_reply_count = bbp_get_forum_reply_count( $forum_id, true, true ); 1010 1010 1011 1011 // Update this forum id … … 1025 1025 1026 1026 // Get forum counts 1027 $parent_topic_count = bbp_get_forum_reply_count( $parent_forum_id, false );1028 $parent_total_reply_count = bbp_get_forum_reply_count( $parent_forum_id, true 1027 $parent_topic_count = bbp_get_forum_reply_count( $parent_forum_id, false, true ); 1028 $parent_total_reply_count = bbp_get_forum_reply_count( $parent_forum_id, true, true ); 1029 1029 1030 1030 // Update counts
Note: See TracChangeset
for help on using the changeset viewer.