summaryrefslogtreecommitdiff
path: root/list_content.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-13 20:34:39 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-13 20:34:39 +0000
commit26dfd0250490b114794d3bc90fa6bc8e7fee0462 (patch)
tree18dc7438fcdd6a5fbeb3fdce2c31564688dc4d6b /list_content.php
parent0d10252d5173fdc07bab6d4535eba334bee16f97 (diff)
downloadliberty-26dfd0250490b114794d3bc90fa6bc8e7fee0462.tar.gz
liberty-26dfd0250490b114794d3bc90fa6bc8e7fee0462.tar.bz2
liberty-26dfd0250490b114794d3bc90fa6bc8e7fee0462.zip
remove old pagination code
Diffstat (limited to 'list_content.php')
-rw-r--r--list_content.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/list_content.php b/list_content.php
index c591604..aeeeecb 100644
--- a/list_content.php
+++ b/list_content.php
@@ -3,7 +3,7 @@
* list_content
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
* @package liberty
* @subpackage functions
*/
@@ -22,16 +22,10 @@ if( !empty( $_REQUEST['sort_mode'] ) ) {
$max_content = $gBitSystem->getPreference( 'max_records' );
$offset_content = @BitBase::verifyId( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
$gBitSmarty->assign( 'user_id', @BitBase::verifyId( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
-$gBitSmarty->assign( 'curPage', $page = @BitBase::verifyId( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 );
-$offset_content = ( $page - 1 ) * $gBitSystem->getPreference( 'max_records' );
// now that we have all the offsets, we can get the content list
include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' );
-// calculate page number
-$numPages = ceil( $contentList['cant'] / $gBitSystem->getPreference( 'max_records' ) );
-$gBitSmarty->assign( 'numPages', $numPages );
-
//$gBitSmarty->assign_by_ref('offset', $offset);
$gBitSmarty->assign( 'contentSelect', $contentSelect );
$gBitSmarty->assign( 'contentTypes', $contentTypes );