Changeset 2975 for branches/1.2/bp-messages/bp-messages-templatetags.php
- Timestamp:
- 04/29/2010 03:50:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-messages/bp-messages-templatetags.php
r2819 r2975 309 309 global $messages_template; 310 310 311 $from_num = bp_core_number_format( intval( ( $messages_template->pag_page - 1 ) * $messages_template->pag_num ) + 1 ); 312 $to_num = bp_core_number_format( ( $from_num + ( $messages_template->pag_num - 1 ) > $messages_template->total_thread_count ) ? $messages_template->total_thread_count : $from_num + ( $messages_template->pag_num - 1 ) ); 311 $start_num = intval( ( $messages_template->pag_page - 1 ) * $messages_template->pag_num ) + 1; 312 $from_num = bp_core_number_format( $start_num ); 313 $to_num = bp_core_number_format( ( $start_num + ( $messages_template->pag_num - 1 ) > $messages_template->total_thread_count ) ? $messages_template->total_thread_count : $start_num + ( $messages_template->pag_num - 1 ) ); 313 314 $total = bp_core_number_format( $messages_template->total_thread_count ); 314 315 315 echo sprintf( __( 'Viewing message % s to %s (of %s messages)', 'buddypress' ), $from_num, $to_num, $total ); ?> 316 echo sprintf( __( 'Viewing message %1$s to %2$s (of %3$s messages)', 'buddypress' ), $from_num, $to_num, $total ); ?> 316 317 <span class="ajax-loader"></span><?php 317 318 }
Note: See TracChangeset
for help on using the changeset viewer.