Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/15/2009 02:37:11 PM (16 years ago)
Author:
apeatling
Message:

Fixing messaging pagination counts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-templatetags.php

    r2168 r2182  
    2828        if ( 'notices' == $this->box )
    2929            $this->threads = BP_Messages_Notice::get_notices();
    30         else
    31             $this->threads = BP_Messages_Thread::get_current_threads_for_user( $this->user_id, $this->box, $this->pag_num, $this->pag_page, $type );
     30        else {
     31            $threads = BP_Messages_Thread::get_current_threads_for_user( $this->user_id, $this->box, $this->pag_num, $this->pag_page, $type );
     32
     33            $this->threads = $threads['threads'];
     34            $this->total_thread_count = $threads['total'];
     35        }
    3236
    3337        if ( !$this->threads ) {
     
    4044                if ( 'notices' == $this->box )
    4145                    $this->total_thread_count = (int)$total_notice_count;
    42                 else
    43                     $this->total_thread_count = (int)BP_Messages_Thread::get_total_threads_for_user( $this->user_id, $this->box, $type );
    4446            } else {
    4547                $this->total_thread_count = (int)$max;
     
    6163            'total' => ceil($this->total_thread_count / $this->pag_num),
    6264            'current' => $this->pag_page,
    63             'prev_text' => '«',
    64             'next_text' => '»',
     65            'prev_text' => '←',
     66            'next_text' => '→',
    6567            'mid_size' => 1
    6668        ));
Note: See TracChangeset for help on using the changeset viewer.