diff options
| author | Christian Fowler <spider@viovio.com> | 2006-02-10 21:39:36 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-02-10 21:39:36 +0000 |
| commit | 0d069b90d1c5a123808e0edcfdcf62436fc2d835 (patch) | |
| tree | e601ec0e0bd76e4394fd05a3a3a3f7e367109fe3 /list_content.php | |
| parent | 539141fb0a3452c23767c7706a60ca077fca81e3 (diff) | |
| download | liberty-0d069b90d1c5a123808e0edcfdcf62436fc2d835.tar.gz liberty-0d069b90d1c5a123808e0edcfdcf62436fc2d835.tar.bz2 liberty-0d069b90d1c5a123808e0edcfdcf62436fc2d835.zip | |
fix listing of content by only using contentTypes hash
Diffstat (limited to 'list_content.php')
| -rw-r--r-- | list_content.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/list_content.php b/list_content.php index e92185c..d46d58d 100644 --- a/list_content.php +++ b/list_content.php @@ -3,7 +3,7 @@ * list_content * * @author spider <spider@steelsun.com> - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ * @package liberty * @subpackage functions */ @@ -27,7 +27,7 @@ $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 ); @@ -35,7 +35,6 @@ $gBitSmarty->assign( 'numPages', $numPages ); //$gBitSmarty->assign_by_ref('offset', $offset); $gBitSmarty->assign( 'contentSelect', $contentSelect ); $gBitSmarty->assign( 'contentTypes', $contentTypes ); -$gBitSmarty->assign( 'contentDescs', $contentDescs ); $gBitSmarty->assign( 'contentList', $contentList['data'] ); $gBitSmarty->assign( 'listInfo', $contentList['listInfo'] ); |
