diff options
author | thomascube <thomas@roundcube.net> | 2012-01-16 15:14:41 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-01-16 15:14:41 +0000 |
commit | c321a955a7b0f6d6b13ffaebf040a6c7091037ae (patch) | |
tree | 60c257d29a726d9bdda7fb75a198342aaef315fa /program/steps/mail/pagenav.inc | |
parent | 8764b6ecf0c8d1b0646915a8139cdf6bbac2ca14 (diff) |
Merged devel-framework branch (r5746:5779) back into trunk
Diffstat (limited to 'program/steps/mail/pagenav.inc')
-rw-r--r-- | program/steps/mail/pagenav.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc index f15ac38de..e74298b88 100644 --- a/program/steps/mail/pagenav.inc +++ b/program/steps/mail/pagenav.inc @@ -20,14 +20,14 @@ */ $uid = get_input_value('_uid', RCUBE_INPUT_GET); -$index = $RCMAIL->imap->message_index(null, $_SESSION['sort_col'], $_SESSION['sort_order']); -$cnt = $index->countMessages(); +$index = $RCMAIL->storage->index(null, $_SESSION['sort_col'], $_SESSION['sort_order']); +$cnt = $index->count_messages(); if ($cnt && ($pos = $index->exists($uid, true)) !== false) { - $prev = $pos ? $index->getElement($pos-1) : 0; - $first = $pos ? $index->getElement('FIRST') : 0; - $next = $pos < $cnt-1 ? $index->getElement($pos+1) : 0; - $last = $pos < $cnt-1 ? $index->getElement('LAST') : 0; + $prev = $pos ? $index->get_element($pos-1) : 0; + $first = $pos ? $index->get_element('FIRST') : 0; + $next = $pos < $cnt-1 ? $index->get_element($pos+1) : 0; + $last = $pos < $cnt-1 ? $index->get_element('LAST') : 0; } // Set UIDs and activate navigation buttons |