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

/**
 * required setup
 */
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
//require_once( USERS_PKG_PATH.'BitUser.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);
?>