summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2008-07-29 18:06:16 +0000
committerLester Caine <lester@lsces.co.uk>2008-07-29 18:06:16 +0000
commit8812e69df501bb1b3ed02e88e7c32f77fe7666b7 (patch)
tree8477cbc96a7202a6ed7e3ae84bbc2d9fda4b6957
parent2ff35eee7aff75a29eda80cda11a515554fd2b1f (diff)
downloadtags-8812e69df501bb1b3ed02e88e7c32f77fe7666b7.tar.gz
tags-8812e69df501bb1b3ed02e88e7c32f77fe7666b7.tar.bz2
tags-8812e69df501bb1b3ed02e88e7c32f77fe7666b7.zip
Use results from getContentList directly
-rwxr-xr-xLibertyTag.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index 1b89579..36d0170 100755
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.38 2008/07/16 11:10:10 huyderman Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.39 2008/07/29 18:06:16 lsces Exp $
* @package tags
*
* @copyright Copyright (c) 2004-2006, bitweaver.org
@@ -569,15 +569,15 @@ class LibertyTag extends LibertyBase {
$gBitSmarty->assign( 'contentSelect', $contentSelect );
$gBitSmarty->assign( 'contentTypes', $contentTypes );
- $contentList['listInfo']['parameters']['content_type_guid'] = $contentSelect;
- $gBitSmarty->assign( 'listInfo', $contentList['listInfo'] );
+ $contentListHash['parameters']['content_type_guid'] = $contentSelect;
+ $gBitSmarty->assign( 'listInfo', $contentListHash );
$gBitSmarty->assign( 'content_type_guids', ( isset( $pParamHash['content_type_guid'] ) ? $pParamHash['content_type_guid'] : NULL ));
if ( isset($pParamHash['matchtags']) && $pParamHash['matchtags'] == 'all'){
//need some sort of matching function
} else {
//match on any tags
- $distinctdata = $this->array_distinct( $contentList["data"], 'content_id' );
+ $distinctdata = $this->array_distinct( $contentList, 'content_id' );
$distinctdata = array_merge($distinctdata);
}
$gBitSmarty->assign_by_ref('contentList', $distinctdata);