diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-06 00:06:23 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-06 00:06:23 +0000 |
| commit | 0eef80f7cca7c9d1bcd447619ca4df6ba9c571c2 (patch) | |
| tree | fa7861dd1cc4febde07af2ebff929695248c4260 /list_galleries.php | |
| parent | de430387dae5c42a124e5563171466d8badc57cf (diff) | |
| download | fisheye-0eef80f7cca7c9d1bcd447619ca4df6ba9c571c2.tar.gz fisheye-0eef80f7cca7c9d1bcd447619ca4df6ba9c571c2.tar.bz2 fisheye-0eef80f7cca7c9d1bcd447619ca4df6ba9c571c2.zip | |
more preference standardisation
Diffstat (limited to 'list_galleries.php')
| -rw-r--r-- | list_galleries.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/list_galleries.php b/list_galleries.php index 630160d..63b55f1 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.5 2006/01/10 21:11:46 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/list_galleries.php,v 1.6 2006/02/06 00:06:23 squareing Exp $ * @package fisheye * @subpackage functions */ @@ -35,10 +35,10 @@ $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->mPrefs['maxRecords']; +$offset = ( $page - 1 ) * $gBitSystem->mPrefs['max_records']; // calculate page number -$numPages = ceil( $galleryList['cant'] / $gBitSystem->mPrefs['maxRecords'] ); +$numPages = ceil( $galleryList['cant'] / $gBitSystem->mPrefs['max_records'] ); $gBitSmarty->assign( 'numPages', $numPages ); $gBitSmarty->assign( 'galleryList', $galleryList['data'] ); |
