diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-09-09 05:59:21 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-09-09 05:59:21 +0000 |
| commit | 53647f2b3aa759529d62bc86b1e9834f5727ba76 (patch) | |
| tree | badd0eb351f6a2fde280cbb9348b301a84317561 /Pigeonholes.php | |
| parent | c1031b76d63d8ef4cf791e1b012aee14d5f1ac66 (diff) | |
| download | pigeonholes-53647f2b3aa759529d62bc86b1e9834f5727ba76.tar.gz pigeonholes-53647f2b3aa759529d62bc86b1e9834f5727ba76.tar.bz2 pigeonholes-53647f2b3aa759529d62bc86b1e9834f5727ba76.zip | |
rename filter hash key to $pParamHash['pigeonholes']['filter'] - not sure if this is the best way to do this, but we'll see.
Diffstat (limited to 'Pigeonholes.php')
| -rw-r--r-- | Pigeonholes.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php index 1ce6c78..80b1efd 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.69 2006/09/08 20:29:12 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.70 2006/09/09 05:59:21 squareing Exp $ * * +----------------------------------------------------------------------+ * | Copyright ( c ) 2004, bitweaver.org @@ -17,7 +17,7 @@ * Pigeonholes class * * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.69 $ + * @version $Revision: 1.70 $ * @package pigeonholes */ @@ -996,15 +996,15 @@ function pigeonholes_content_store( $pObject, $pParamHash ) { function pigeonholes_content_list_sql( &$pObject, $pParamHash = NULL ) { global $gBitSystem; $ret = array(); - if( /*$gBitSystem->isFeatureActive( 'pigeonholes_categorize_'.$pObject->getContentType() ) && */ !empty( $pParamHash['category_filter'] ) ) { - if ( is_array( $pParamHash['category_filter'] ) ) { + if( /*$gBitSystem->isFeatureActive( 'pigeonholes_categorize_'.$pObject->getContentType() ) && */ !empty( $pParamHash['pigeonholes']['filter'] ) ) { + if ( is_array( $pParamHash['pigeonholes']['filter'] ) ) { $ret['join_sql'] = "LEFT JOIN `".BIT_DB_PREFIX."pigeonhole_members` pm ON (lc .`content_id`= pm.`content_id`)"; - $ret['where_sql'] = ' AND pm.`parent_id` in ('.implode( ',', array_fill(0, count( $pParamHash['category_filter'] ), '?' ) ).')'; - $ret['bind_vars'] = $pParamHash['category_filter']; + $ret['where_sql'] = ' AND pm.`parent_id` in ('.implode( ',', array_fill(0, count( $pParamHash['pigeonholes']['filter'] ), '?' ) ).')'; + $ret['bind_vars'] = $pParamHash['pigeonholes']['filter']; } else { $ret['join_sql'] = "LEFT JOIN `".BIT_DB_PREFIX."pigeonhole_members` pm ON (lc .`content_id`= pm.`content_id`)"; $ret['where_sql'] = " AND pm.`parent_id`=? "; - $ret['bind_vars'][] = $pParamHash['category_filter']; + $ret['bind_vars'][] = $pParamHash['pigeonholes']['filter']; } } return $ret; |
