From 7d10a588e8e597fba279cbdbac5fd5b2ae81f1f7 Mon Sep 17 00:00:00 2001 From: "Lester Caine ext:(%22)" Date: Sun, 6 May 2012 21:53:08 +0100 Subject: Handle user functions in users package --- templates/center_list_articles.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/center_list_articles.php b/templates/center_list_articles.php index ced28b6..88f6da1 100644 --- a/templates/center_list_articles.php +++ b/templates/center_list_articles.php @@ -35,16 +35,7 @@ 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']; - } -} -if( @BitBase::verifyId( $_REQUEST['group_id'] ) ) { - $listHash['group_id'] = $_REQUEST['group_id']; -} +BitUser::userCollection( $_REQUEST, $listHash ); $articles = $gContent->getList( $listHash ); $gBitSmarty->assign( 'articles', $articles ); -- cgit v1.3