diff options
| author | Christian Fowler <spider@viovio.com> | 2006-02-07 01:19:19 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-02-07 01:19:19 +0000 |
| commit | 2e181f9e06e17e527031043216124da80afa3630 (patch) | |
| tree | 2f31b2cd56f628cc44e76784e07ce26c998b151c /page_history.php | |
| parent | 3c7738bde4f7fa9d7074c42ef6e4fde1b12724b3 (diff) | |
| download | wiki-2e181f9e06e17e527031043216124da80afa3630.tar.gz wiki-2e181f9e06e17e527031043216124da80afa3630.tar.bz2 wiki-2e181f9e06e17e527031043216124da80afa3630.zip | |
finish move of content versioning to liberty_content - had to move version column to Liberty as well.
Diffstat (limited to 'page_history.php')
| -rw-r--r-- | page_history.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/page_history.php b/page_history.php index 92e9b6f..43faf1f 100644 --- a/page_history.php +++ b/page_history.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.7 2006/02/06 22:56:52 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.8 2006/02/07 01:19:19 spiderr 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.7 2006/02/06 22:56:52 squareing Exp $ + * $Id: page_history.php,v 1.8 2006/02/07 01:19:19 spiderr 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['max_records']; -$history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->mPrefs['max_records'] ); +$offset = ( $page - 1 ) * $gBitSystem->getPreference( 'max_records' ); +$history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->getPreference( 'max_records' ) ); $gBitSmarty->assign_by_ref( 'history', $history ); //vd($gContent->getHistoryCount()); // calculate page number -$numPages = ceil( $gContent->getHistoryCount() / $gBitSystem->mPrefs['max_records'] ); +$numPages = ceil( $gContent->getHistoryCount() / $gBitSystem->getPreference('max_records', 20) ); $gBitSmarty->assign( 'numPages', $numPages ); |
