From 42a1854034954b840d0d83de4d1a460060cecd97 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Mon, 6 Feb 2006 00:12:23 +0000 Subject: more preference standardisation --- page_history.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'page_history.php') diff --git a/page_history.php b/page_history.php index 9ba8e16..1735a10 100644 --- a/page_history.php +++ b/page_history.php @@ -1,6 +1,6 @@ assign( 'page', $page = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 ); -$offset = ( $page - 1 ) * $gBitSystem->mPrefs['maxRecords']; -$history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->mPrefs['maxRecords'] ); +$offset = ( $page - 1 ) * $gBitSystem->mPrefs['max_records']; +$history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->mPrefs['max_records'] ); $gBitSmarty->assign_by_ref( 'history', $history ); //vd($gContent->getHistoryCount()); // calculate page number -$numPages = ceil( $gContent->getHistoryCount() / $gBitSystem->mPrefs['maxRecords'] ); +$numPages = ceil( $gContent->getHistoryCount() / $gBitSystem->mPrefs['max_records'] ); $gBitSmarty->assign( 'numPages', $numPages ); -- cgit v1.3