diff options
| author | Christian Fowler <spider@viovio.com> | 2006-03-01 20:16:09 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-03-01 20:16:09 +0000 |
| commit | ebe24ece21c4cb713ff6159a2b68b2e1de4db9cb (patch) | |
| tree | 016d7a4aa9ff7449fae5a3b9ff2a2f7e4bf29d11 /list_galleries.php | |
| parent | d4f874d6847ce516afcefb246fedf1257910c9de (diff) | |
| download | fisheye-ebe24ece21c4cb713ff6159a2b68b2e1de4db9cb.tar.gz fisheye-ebe24ece21c4cb713ff6159a2b68b2e1de4db9cb.tar.bz2 fisheye-ebe24ece21c4cb713ff6159a2b68b2e1de4db9cb.zip | |
move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences
Diffstat (limited to 'list_galleries.php')
| -rw-r--r-- | list_galleries.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/list_galleries.php b/list_galleries.php index 26861d9..0b974cc 100644 --- a/list_galleries.php +++ b/list_galleries.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/list_galleries.php,v 1.7 2006/02/09 10:30:37 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/list_galleries.php,v 1.8 2006/03/01 20:16:07 spiderr Exp $ * @package fisheye * @subpackage functions */ @@ -29,16 +29,16 @@ if (!empty($_REQUEST['user_id']) && is_numeric($_REQUEST['user_id'])) { $template = 'list_galleries.tpl'; } -$_REQUEST['thumbnail_size'] = $gBitSystem->getPreference( 'fisheye_list_thumbnail_size', 'small' ); +$_REQUEST['thumbnail_size'] = $gBitSystem->getConfig( 'fisheye_list_thumbnail_size', 'small' ); $galleryList = $gFisheyeGallery->getList( $_REQUEST ); // pagination $offset = !empty( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0; $gBitSmarty->assign( 'curPage', $page = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 ); -$offset = ( $page - 1 ) * $gBitSystem->getPreference( 'max_records' ); +$offset = ( $page - 1 ) * $gBitSystem->getConfig( 'max_records' ); // calculate page number -$numPages = ceil( $galleryList['cant'] / $gBitSystem->getPreference( 'max_records' ) ); +$numPages = ceil( $galleryList['cant'] / $gBitSystem->getConfig( 'max_records' ) ); $gBitSmarty->assign( 'numPages', $numPages ); $gBitSmarty->assign( 'galleryList', $galleryList['data'] ); |
