Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2010 03:50:17 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2251

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-messages/bp-messages-templatetags.php

    r2819 r2975  
    309309        global $messages_template;
    310310
    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 ) );
    313314        $total = bp_core_number_format( $messages_template->total_thread_count );
    314315
    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 ); ?>  
    316317        <span class="ajax-loader"></span><?php
    317318}
Note: See TracChangeset for help on using the changeset viewer.