summaryrefslogtreecommitdiff
path: root/page_history.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-06 00:12:23 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-06 00:12:23 +0000
commit42a1854034954b840d0d83de4d1a460060cecd97 (patch)
tree9b3ef624bb824956c50875c024c8cd8cc57dc87d /page_history.php
parent7a1f6470543b0d78d22485a8bd4a1c9c2f4ca768 (diff)
downloadwiki-42a1854034954b840d0d83de4d1a460060cecd97.tar.gz
wiki-42a1854034954b840d0d83de4d1a460060cecd97.tar.bz2
wiki-42a1854034954b840d0d83de4d1a460060cecd97.zip
more preference standardisation
Diffstat (limited to 'page_history.php')
-rw-r--r--page_history.php10
1 files changed, 5 insertions, 5 deletions
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 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.5 2006/01/27 21:57:53 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.6 2006/02/06 00:12:23 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: page_history.php,v 1.5 2006/01/27 21:57:53 squareing Exp $
+ * $Id: page_history.php,v 1.6 2006/02/06 00:12:23 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -86,14 +86,14 @@ if (isset($_REQUEST["delete"]) && isset($_REQUEST["hist"])) {
// pagination stuff
$gBitSmarty->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 );