summaryrefslogtreecommitdiff
path: root/modules/mod_feed.php
blob: 494522b60ce1f151bf8b2bc0570eff1c2c3e20ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
 * @version $Header$
 *
 * FeedStatus class
 *
 * @version  $Revision$
 * @package  feed
 * @subpackage functions
 */

/**
 * global defs
 */
global $gQueryUser,$gBitSmarty;

require_once( FEED_PKG_PATH.'feed_lib.php' );

if( !empty($gQueryUser) ){

	if( !empty( $moduleParams['module_params']['no_link_user'] ) ) {
		$listHash['no_link_user'] = TRUE;
	}
	if( !empty( $moduleParams['module_rows'] ) ) {
		$listHash['max_records'] = $moduleParams['module_rows'];
	}
	if( !empty( $moduleParams['module_params']['user_id'] ) ){
		$listHash['user_id'] = $moduleParams['module_params']['user_id'];
	}else{
		$listHash['user_id'] = $gQueryUser->mUserId;
	}

	$actions = feed_get_actions( $listHash );

	$_template->tpl_vars['actions'] = new Smarty_variable( $actions);
}
?>