diff options
Diffstat (limited to 'attachment_browser.php')
| -rw-r--r-- | attachment_browser.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/attachment_browser.php b/attachment_browser.php index 00f94a1..789a701 100644 --- a/attachment_browser.php +++ b/attachment_browser.php @@ -3,7 +3,7 @@ * attachment_browser * * @author spider <spider@steelsun.com> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package liberty * @subpackage functions */ @@ -24,9 +24,9 @@ $gBitSmarty->assign( 'userAttachments', $userAttachments ); // pagination $offset = @BitBase::verifyId( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0; $gBitSmarty->assign( 'curPage', $pgnPage = @BitBase::verifyId( $_REQUEST['pgnPage'] ) ? $_REQUEST['pgnPage'] : 1 ); -$offset = ( $pgnPage - 1 ) * $gBitSystem->mPrefs['max_records']; +$offset = ( $pgnPage - 1 ) * $gBitSystem->getPreference( 'max_records' ); // calculate page number -$numPages = ceil( $userAttachments['cant'] / $gBitSystem->mPrefs['max_records'] ); +$numPages = ceil( $userAttachments['cant'] / $gBitSystem->getPreference( 'max_records' ) ); $gBitSmarty->assign( 'numPages', $numPages ); ?> |
