summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-19 05:05:39 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-19 05:05:39 +0000
commit1823f86baeb071eee8499e80f5006149fa63faf7 (patch)
tree84f552d05f7df5f9343fbcd3791b967d3a77100e /modules
parent71104fd5ad9ff0216af7cfae1bd4bb1be8509408 (diff)
downloadfisheye-1823f86baeb071eee8499e80f5006149fa63faf7.tar.gz
fisheye-1823f86baeb071eee8499e80f5006149fa63faf7.tar.bz2
fisheye-1823f86baeb071eee8499e80f5006149fa63faf7.zip
set moduleParams global and fix module_rows usage
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_images.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/mod_images.php b/modules/mod_images.php
index 9bba951..b3372da 100644
--- a/modules/mod_images.php
+++ b/modules/mod_images.php
@@ -1,11 +1,14 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.php,v 1.9 2007/07/18 20:02:09 gravyface Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/modules/mod_images.php,v 1.10 2007/07/19 05:05:39 squareing Exp $
* @package fisheye
* @subpackage modules
*/
-global $gBitSystem, $gQueryUserId, $module_rows, $module_params, $module_title, $gContent;
+global $gQueryUserId, $gContent, $moduleParams;
+
+// makes things in older modules easier
+extract( $moduleParams );
/**
* required setup
@@ -27,8 +30,7 @@ if( !empty( $gContent ) && $gContent->getField( 'content_type_guid' ) == FISHEYE
if( $display ) {
-
- $listHash['max_records'] = empty( $listHash['rows'] ) ? $gBitSystem->getConfig( 'max_records' ) : $listHash['rows'];
+ $listHash['max_records'] = $module_rows;
if( $gQueryUserId ) {
$listHash['user_id'] = $gQueryUserId;
} elseif( !empty( $_REQUEST['user_id'] ) ) {