summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-12-05 05:06:12 +0000
committerwjames5 <will@tekimaki.com>2007-12-05 05:06:12 +0000
commit718a76262e632a3d85611c1c90a8f981079dfe77 (patch)
tree67a730dff46cfdde3111c076e825488e5a006b09 /modules
parentaecbc19d6fc3707d40c815b27cf304012aac28b8 (diff)
downloadblogs-718a76262e632a3d85611c1c90a8f981079dfe77.tar.gz
blogs-718a76262e632a3d85611c1c90a8f981079dfe77.tar.bz2
blogs-718a76262e632a3d85611c1c90a8f981079dfe77.zip
pass list params into service sql in posts:getList and pass along module params so that you take advantage of list services in mod_last_blog_post
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_last_blog_posts.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mod_last_blog_posts.php b/modules/mod_last_blog_posts.php
index 3713dca..96187fe 100644
--- a/modules/mod_last_blog_posts.php
+++ b/modules/mod_last_blog_posts.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_last_blog_posts.php,v 1.18 2007/11/13 04:29:20 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_last_blog_posts.php,v 1.19 2007/12/05 05:06:12 wjames5 Exp $
* @package blogs
* @subpackage modules
*/
@@ -20,7 +20,7 @@ if( !empty($module_params['date_start_offset']) ){
$date_start = time() - ( $module_params['date_start_offset'] * 3600 );
}
-$listHash = array(
+$defaultsHash = array(
'sort_mode' => ( !empty( $module_params['sort_mode'] ) ? $module_params['sort_mode'] : 'publish_date_desc' ),
'max_records' => $module_rows,
'parse_data' => TRUE,
@@ -30,6 +30,8 @@ $listHash = array(
'date_start' => $date_start,
);
+$listHash = array_merge($module_params, $defaultsHash);
+
if(( empty( $module_params['include'] ) || $module_params['include'] != 'all' ) && !empty( $gQueryUserId )) {
$listHash['user_id'] = $gQueryUserId;
}