summaryrefslogtreecommitdiff
path: root/received_pages.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 /received_pages.php
parent7a1f6470543b0d78d22485a8bd4a1c9c2f4ca768 (diff)
downloadwiki-42a1854034954b840d0d83de4d1a460060cecd97.tar.gz
wiki-42a1854034954b840d0d83de4d1a460060cecd97.tar.bz2
wiki-42a1854034954b840d0d83de4d1a460060cecd97.zip
more preference standardisation
Diffstat (limited to 'received_pages.php')
-rw-r--r--received_pages.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/received_pages.php b/received_pages.php
index 6b0657c..fa85479 100644
--- a/received_pages.php
+++ b/received_pages.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/Attic/received_pages.php,v 1.5 2006/02/02 08:20:47 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/Attic/received_pages.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: received_pages.php,v 1.5 2006/02/02 08:20:47 squareing Exp $
+ * $Id: received_pages.php,v 1.6 2006/02/06 00:12:23 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -84,7 +84,7 @@ if (!isset($_REQUEST["offset"])) {
}
if (isset($_REQUEST['page'])) {
$page = &$_REQUEST['page'];
- $offset = ($page - 1) * $maxRecords;
+ $offset = ($page - 1) * $max_records;
}
$gBitSmarty->assign_by_ref('offset', $offset);
if (isset($_REQUEST["find"])) {
@@ -94,18 +94,18 @@ if (isset($_REQUEST["find"])) {
}
$gBitSmarty->assign_by_ref('find', $find);
-$channels = $wikilib->list_received_pages($offset, $maxRecords, $sort_mode, $find);
-$cant_pages = ceil($channels["cant"] / $maxRecords);
+$channels = $wikilib->list_received_pages($offset, $max_records, $sort_mode, $find);
+$cant_pages = ceil($channels["cant"] / $max_records);
$gBitSmarty->assign_by_ref('cant_pages', $cant_pages);
-$gBitSmarty->assign('actual_page', 1 + ($offset / $maxRecords));
-if ($channels["cant"] > ($offset + $maxRecords)) {
- $gBitSmarty->assign('next_offset', $offset + $maxRecords);
+$gBitSmarty->assign('actual_page', 1 + ($offset / $max_records));
+if ($channels["cant"] > ($offset + $max_records)) {
+ $gBitSmarty->assign('next_offset', $offset + $max_records);
} else {
$gBitSmarty->assign('next_offset', -1);
}
// If offset is > 0 then prev_offset
if ($offset > 0) {
- $gBitSmarty->assign('prev_offset', $offset - $maxRecords);
+ $gBitSmarty->assign('prev_offset', $offset - $max_records);
} else {
$gBitSmarty->assign('prev_offset', -1);
}