summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTekimaki <tekimaki_admin@users.sourceforge.net>2009-01-28 21:29:11 +0000
committerTekimaki <tekimaki_admin@users.sourceforge.net>2009-01-28 21:29:11 +0000
commitc8ebdb757f8c34965b4c459b59837e898f3f63ad (patch)
treecfdc0c718c3011445798d8e8ca0120b4c2ab8d6f
parent872ebbe7af94673b33a0ce10587bb1bf13353c14 (diff)
downloadtags-c8ebdb757f8c34965b4c459b59837e898f3f63ad.tar.gz
tags-c8ebdb757f8c34965b4c459b59837e898f3f63ad.tar.bz2
tags-c8ebdb757f8c34965b4c459b59837e898f3f63ad.zip
pass param hash by reference in services - utilized in _list_sql services to append values to listHash
-rwxr-xr-xLibertyTag.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index 38c9018..454de8d 100755
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.45 2009/01/27 01:30:01 tekimaki_admin Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.46 2009/01/28 21:29:11 tekimaki_admin Exp $
* @package tags
*
* @copyright Copyright (c) 2004-2006, bitweaver.org
@@ -653,7 +653,7 @@ function tags_content_display( &$pObject ) {
* filter the search with pigeonholes
* @param $pParamHash['tags']['filter'] - a tag or an array of tags
**/
-function tags_content_list_sql( &$pObject, $pParamHash = NULL ) {
+function tags_content_list_sql( &$pObject, &$pParamHash = NULL ) {
global $gBitSystem;
$ret = array();
@@ -687,6 +687,10 @@ function tags_content_list_sql( &$pObject, $pParamHash = NULL ) {
$ret['where_sql'] = ' AND tg.`tag` IN ('.implode( ',', array_fill(0, count( $tags ), '?' ) ).')';
$ret['bind_vars'] = $tags;
+
+ // return the values sent for pagination / url purposes
+ $pParamHash['listInfo']['tags'] = $pParamHash['tags'];
+ $pParamHash['listInfo']['ihash']['tags'] = $pParamHash['tags'];
}
return $ret;