Changeset 4654
- Timestamp:
- 12/25/2012 07:35:37 AM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 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 -
trunk/includes/topics/functions.php
r4611 r4654 2157 2157 // Get counts 2158 2158 $topic_id = bbp_get_topic_id( $topic_id ); 2159 $reply_count = bbp_get_topic_reply_count( $topic_id, false );2159 $reply_count = bbp_get_topic_reply_count( $topic_id, true ); 2160 2160 $new_count = (int) $reply_count + (int) $difference; 2161 2161 … … 2183 2183 // Get counts 2184 2184 $topic_id = bbp_get_topic_id( $topic_id ); 2185 $reply_count = bbp_get_topic_reply_count_hidden( $topic_id, false );2185 $reply_count = bbp_get_topic_reply_count_hidden( $topic_id, true ); 2186 2186 $new_count = (int) $reply_count + (int) $difference; 2187 2187
Note: See TracChangeset
for help on using the changeset viewer.