Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | // Get list of users currently viewing specified node. | |
4 | ||
5 | function smarty_function_get_node_userlist($params,&$smarty) { | |
6 | ||
7 | global $node; | |
8 | ||
9 | if (isset($params['node_id']) && is_numeric($params['node_id'])) { | |
10 | $node_id=$params['node_id']; | |
11 | } else { | |
12 | $node_id=$node['node_id']; | |
13 | } | |
14 | ||
15 | $userlist=nodes::getNodeUserlist($node_id); | |
16 | $smarty->assign('userlist',$userlist); | |
17 | } | |
18 | ?> |