diff options
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'; |
