diff options
| author | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-05-06 21:55:32 +0100 |
|---|---|---|
| committer | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-05-06 21:55:32 +0100 |
| commit | 70bd090c358bd7df4c8530ec12c855e259f90c2d (patch) | |
| tree | 8495444f5c2cc73f5357674f48a7cd4554211dc7 /templates | |
| parent | 73412b7ca808489a6a9fb11218fb8e2db146e254 (diff) | |
| download | blogs-70bd090c358bd7df4c8530ec12c855e259f90c2d.tar.gz blogs-70bd090c358bd7df4c8530ec12c855e259f90c2d.tar.bz2 blogs-70bd090c358bd7df4c8530ec12c855e259f90c2d.zip | |
Handle user functions in users package
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/center_list_blog_posts.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php index 48bb7aa..45afaf0 100644 --- a/templates/center_list_blog_posts.php +++ b/templates/center_list_blog_posts.php @@ -3,7 +3,7 @@ * @version $Header$ * @package bitweaver */ -global $gBitSmarty, $gBlog, $gBitSystem, $gQueryUserId, $moduleParams, $gBitUser; +global $gBitSmarty, $gBlog, $gBitSystem, $moduleParams, $gBitUser; if( !empty( $moduleParams ) ) { extract( $moduleParams ); } @@ -56,19 +56,11 @@ if( !empty( $moduleParams )) { $listHash = $_REQUEST; } -if( empty( $listHash['user_id'] )) { - if( !empty( $gQueryUserId )) { - $listHash['user_id'] = $gQueryUserId; - } elseif( isset( $_REQUEST['user_id'] ) ) { - $listHash['user_id'] = $_REQUEST['user_id']; - } -} +BitUser::userCollection( $_REQUEST, $listHash ); + if ( empty( $listHash['sort_mode'] ) ){ $listHash['sort_mode'] = 'sort_date_desc'; } -if( @BitBase::verifyId( $_REQUEST['group_id'] ) ) { - $listHash['group_id'] = $_REQUEST['group_id']; -} if( !$gBitUser->hasPermission( 'p_blogs_admin' )) { $listHash['content_perm_name'] = 'p_blogs_view'; |
