diff options
| -rw-r--r-- | admin/edit_group.php | 4 | ||||
| -rw-r--r-- | index.php | 6 | ||||
| -rw-r--r-- | modules/mod_user_pages.php | 4 | ||||
| -rw-r--r-- | my.php | 12 |
4 files changed, 13 insertions, 13 deletions
diff --git a/admin/edit_group.php b/admin/edit_group.php index a784a9c..96048f6 100644 --- a/admin/edit_group.php +++ b/admin/edit_group.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_users/admin/edit_group.php,v 1.36 2008/06/25 22:21:28 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_users/admin/edit_group.php,v 1.37 2008/07/29 18:10:24 lsces Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -121,7 +121,7 @@ if( !empty( $_REQUEST['group_id'] ) || (!empty( $_REQUEST["action"] ) && $_REQUE /* // get content and pass it on to the template include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' ); - foreach( $contentList['data'] as $cItem ) { + foreach( $contentList as $cItem ) { $cList[$contentTypes[$cItem['content_type_guid']]][$cItem['content_id']] = $cItem['title'].' [id: '.$cItem['content_id'].']'; } $gBitSmarty->assign( 'contentList', $cList ); @@ -1,8 +1,8 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.30 2008/06/25 22:21:28 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.31 2008/07/29 18:10:24 lsces Exp $ * - * $Id: index.php,v 1.30 2008/06/25 22:21:28 spiderr Exp $ + * $Id: index.php,v 1.31 2008/07/29 18:10:24 lsces Exp $ * @package users * @subpackage functions */ @@ -73,7 +73,7 @@ if( !empty( $_REQUEST['home'] ) && $gQueryUser->isValid() && (( $gBitUser->hasPe //$gBitSmarty->assign_by_ref('offset', $offset); $gBitSmarty->assign( 'contentSelect', $contentSelect ); $gBitSmarty->assign( 'contentTypes', $contentTypes ); - $gBitSmarty->assign( 'contentList', $contentList['data'] ); + $gBitSmarty->assign( 'contentList', $contentList ); // needed by pagination $contentList['listInfo']['ihash']['content_type_guid'] = $contentSelect[0]; diff --git a/modules/mod_user_pages.php b/modules/mod_user_pages.php index 20df047..37daef7 100644 --- a/modules/mod_user_pages.php +++ b/modules/mod_user_pages.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_pages.php,v 1.4 2005/10/12 15:14:09 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_pages.php,v 1.5 2008/07/29 18:10:24 lsces Exp $ /** * Params: * - content_type_guid : if set, show only those content_type_guid's @@ -40,6 +40,6 @@ $listHash = array( 'user_id' => $userId, ); $modLastPages = $gBitUser->getContentList( $listHash ); -$gBitSmarty->assign_by_ref( 'modLastPages', $modLastPages['data'] ); +$gBitSmarty->assign_by_ref( 'modLastPages', $modLastPages ); ?> @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/my.php,v 1.18 2008/06/25 22:21:28 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/my.php,v 1.19 2008/07/29 18:10:24 lsces Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: my.php,v 1.18 2008/06/25 22:21:28 spiderr Exp $ + * $Id: my.php,v 1.19 2008/07/29 18:10:24 lsces Exp $ * @package users * @subpackage functions */ @@ -48,15 +48,15 @@ if( $gBitSystem->isFeatureActive( 'display_users_content_list' ) ) { include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' ); // calculate page number - $numPages = ceil( $contentList['cant'] / $gBitSystem->getConfig( 'max_records' ) ); + $numPages = ceil( $contentListHash['cant'] / $gBitSystem->getConfig( 'max_records' ) ); $gBitSmarty->assign( 'numPages', $numPages ); //$gBitSmarty->assign_by_ref('offset', $offset); $gBitSmarty->assign( 'contentSelect', $contentSelect ); $gBitSmarty->assign( 'contentTypes', $contentTypes ); - $gBitSmarty->assign( 'contentList', $contentList['data'] ); - $gBitSmarty->assign( 'contentCount', $contentList['cant'] ); - $gBitSmarty->assign( 'listInfo', $contentList['listInfo'] ); + $gBitSmarty->assign( 'contentList', $contentList ); + $gBitSmarty->assign( 'contentCount', $contentListHash['cant'] ); + $gBitSmarty->assign( 'listInfo', $contentListHash ); // end of content listing } |
