Skip to:
Content

bbPress.org

Changeset 4654


Ignore:
Timestamp:
12/25/2012 07:35:37 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Update bump count functions to use integer values. See #1799.

Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forums/functions.php

    r4551 r4654  
    930930    // Get some counts
    931931    $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 );
    934934
    935935    // Update this forum id
     
    949949
    950950                // 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 );
    953953
    954954                // Update counts
     
    979979    // Get some counts
    980980    $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 );
    982982    $new_count   = (int) $topic_count + (int) $difference;
    983983
     
    10061006    // Get some counts
    10071007    $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 );
    10101010
    10111011    // Update this forum id
     
    10251025
    10261026                // 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 );
    10291029
    10301030                // Update counts
  • trunk/includes/topics/functions.php

    r4611 r4654  
    21572157    // Get counts
    21582158    $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 );
    21602160    $new_count   = (int) $reply_count + (int) $difference;
    21612161
     
    21832183    // Get counts
    21842184    $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 );
    21862186    $new_count   = (int) $reply_count + (int) $difference;
    21872187
Note: See TracChangeset for help on using the changeset viewer.