summaryrefslogtreecommitdiff
path: root/modules/mod_last_modified_blogs.php
blob: 9aba738db118680cf83b4bf54b3bb656d88d2289 (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
<?php
/**
 * @version $Header$
 * @package blogs
 * @subpackage modules
 */

/**
 * required setup
 */
include_once( BLOGS_PKG_CLASS_PATH.'BitBlog.php' );

global $gQueryUserId, $moduleParams;
//$params = $moduleParams['module_params'];

$listHash['max_records'] = $moduleParams['module_rows'];
$listHash['sort_mode'] = 'last_modified_desc';
BitUser::userCollection( $moduleParams, $listHash );

$blog = new BitBlog();
$ranking = $blog->getList( $listHash );

$_template->tpl_vars['modLastModifiedBlogs'] = new Smarty_variable( $ranking);
?>