Ticket #3428: 3428.02.patch
File 3428.02.patch, 1.3 KB (added by , 3 years ago) |
---|
-
src/includes/common/functions.php
516 516 } 517 517 518 518 // Tally the tallies 519 $counts = array_ filter( array_map( 'absint', compact(519 $counts = array_map( 'absint', compact( 520 520 'user_count', 521 521 'forum_count', 522 522 'topic_count', … … 525 525 'reply_count_hidden', 526 526 'topic_tag_count', 527 527 'empty_topic_tag_count' 528 ) ) );528 ) ); 529 529 530 530 // Define return value 531 531 $statistics = array(); 532 532 533 533 // Loop through and store the integer and i18n formatted counts. 534 534 foreach ( $counts as $key => $count ) { 535 $statistics[ $key ] = bbp_number_format_i18n( $count ); 536 $statistics[ "{$key}_int" ] = $count; 535 $not_negative = bbp_number_not_negative( $count ); 536 $statistics[ $key ] = bbp_number_format_i18n( $not_negative ); 537 $statistics[ "{$key}_int" ] = $not_negative; 537 538 } 538 539 539 540 // Add the hidden (topic/reply) count title attribute strings because we -
src/templates/default/bbpress/content-statistics.php
13 13 // Get the statistics 14 14 $stats = bbp_get_statistics(); ?> 15 15 16 <dl role="main" >16 <dl role="main" class="bbp-stats"> 17 17 18 18 <?php do_action( 'bbp_before_statistics' ); ?> 19 19