summaryrefslogtreecommitdiff
path: root/list_content.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2008-03-23 13:06:26 +0000
committerLester Caine <lester@lsces.co.uk>2008-03-23 13:06:26 +0000
commit5095185ab8c109971703ce37bcda7cb0a72225ca (patch)
tree332f3d1eafaa94bcc7f68ef6445ee16ddb87030d /list_content.php
parenta6e3e3f1ea20c010f04ea72c0f1191a63db9dc69 (diff)
downloadliberty-5095185ab8c109971703ce37bcda7cb0a72225ca.tar.gz
liberty-5095185ab8c109971703ce37bcda7cb0a72225ca.tar.bz2
liberty-5095185ab8c109971703ce37bcda7cb0a72225ca.zip
Pass additional filter information in ihash for navigation links
Diffstat (limited to 'list_content.php')
-rw-r--r--list_content.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/list_content.php b/list_content.php
index 8de00a0..a95da64 100644
--- a/list_content.php
+++ b/list_content.php
@@ -3,7 +3,7 @@
* list_content
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
* @package liberty
* @subpackage functions
*/
@@ -34,17 +34,15 @@ if (!empty($_REQUEST["max_records"])) {
$_SESSION['liberty_records_per_page'] = $max_content;
}
-
-
-$gBitSmarty->assign( 'user_id', @BitBase::verifyId( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
-
// now that we have all the offsets, we can get the content list
include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' );
$gBitSmarty->assign( 'contentSelect', $contentSelect );
$gBitSmarty->assign( 'contentTypes', $contentTypes );
$gBitSmarty->assign( 'contentList', $contentList['data'] );
-$contentList['listInfo']['parameters']['content_type_guid'] = $contentSelect;
+$contentList['listInfo']['ihash']['content_type_guid'] = $contentSelect[0];
+$contentList['listInfo']['ihash']['user_id'] = @BitBase::verifyId( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL;
+$contentList['listInfo']['ihash']['find_objects'] = $contentList['listInfo']['find'];
$gBitSmarty->assign( 'listInfo', $contentList['listInfo'] );
$gBitSmarty->assign( 'content_type_guids', ( isset( $_REQUEST['content_type_guid'] ) ? $_REQUEST['content_type_guid'] : NULL ));