summaryrefslogtreecommitdiff
path: root/page_history.php
diff options
context:
space:
mode:
authorJams H Thompson <jht001@users.sourceforge.net>2007-08-19 12:16:12 +0000
committerJams H Thompson <jht001@users.sourceforge.net>2007-08-19 12:16:12 +0000
commita8fbd0bb7720b3cd8e6c008c447b765468da7fe3 (patch)
tree919649dee20e5249ee94777daf044027e29a5e9f /page_history.php
parentd6a34876dfc5dfba9e6e30adc1204ea5be213a99 (diff)
downloadwiki-a8fbd0bb7720b3cd8e6c008c447b765468da7fe3.tar.gz
wiki-a8fbd0bb7720b3cd8e6c008c447b765468da7fe3.tar.bz2
wiki-a8fbd0bb7720b3cd8e6c008c447b765468da7fe3.zip
fix pagination
Diffstat (limited to 'page_history.php')
-rw-r--r--page_history.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/page_history.php b/page_history.php
index 274b40b..71d9e66 100644
--- a/page_history.php
+++ b/page_history.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.22 2007/07/10 16:19:50 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.23 2007/08/19 12:16:12 jht001 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.22 2007/07/10 16:19:50 squareing Exp $
+ * $Id: page_history.php,v 1.23 2007/08/19 12:16:12 jht001 Exp $
* @package wiki
* @subpackage functions
*/
@@ -38,7 +38,12 @@ $smartyContentRef = 'pageInfo';
include_once( LIBERTY_PKG_PATH.'content_history_inc.php' );
// pagination stuff
+$gBitSmarty->assign( 'page', $page = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 );
+if ( !empty($_REQUEST['list_page']) ) {
$gBitSmarty->assign( 'page', $page = !empty( $_REQUEST['list_page'] ) ? $_REQUEST['list_page'] : 1 );
+}
+
+
$offset = ( $page - 1 ) * $gBitSystem->getConfig( 'max_records' );
$history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->getConfig( 'max_records' ) );
$gBitSmarty->assign_by_ref( 'data', $history['data'] );