summaryrefslogtreecommitdiff
path: root/list_galleries.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-09 10:30:37 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-09 10:30:37 +0000
commita2de66564a050bf5896ca6bce8afbf7ac8261850 (patch)
treeec047d8d2a4b28056f1b2be90a7b9093c6a408e6 /list_galleries.php
parent11fe3fb99acf858c241916b277c5e6a845371469 (diff)
downloadfisheye-a2de66564a050bf5896ca6bce8afbf7ac8261850.tar.gz
fisheye-a2de66564a050bf5896ca6bce8afbf7ac8261850.tar.bz2
fisheye-a2de66564a050bf5896ca6bce8afbf7ac8261850.zip
remove getPref() and we continue using old method getPreference();
replace all direct accesses with getPreference() or setPreference() (new function) BitSystem::getPreference() and related functions will be renamed to BitSystem::getConfig()
Diffstat (limited to 'list_galleries.php')
-rw-r--r--list_galleries.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/list_galleries.php b/list_galleries.php
index 63b55f1..26861d9 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.6 2006/02/06 00:06:23 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/list_galleries.php,v 1.7 2006/02/09 10:30:37 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['max_records'];
+$offset = ( $page - 1 ) * $gBitSystem->getPreference( 'max_records' );
// calculate page number
-$numPages = ceil( $galleryList['cant'] / $gBitSystem->mPrefs['max_records'] );
+$numPages = ceil( $galleryList['cant'] / $gBitSystem->getPreference( 'max_records' ) );
$gBitSmarty->assign( 'numPages', $numPages );
$gBitSmarty->assign( 'galleryList', $galleryList['data'] );