diff options
| author | wjames5 <will@tekimaki.com> | 2008-05-20 16:42:08 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-05-20 16:42:08 +0000 |
| commit | e2de0e3afccb1bd8ebf0616909a0216efb81c86d (patch) | |
| tree | c88e8577932aa3e54de789ec053e273a2e52beb6 /modules | |
| parent | 86043bca55bf308fa9b3d01e5495d0a74d7a5033 (diff) | |
| download | blogs-e2de0e3afccb1bd8ebf0616909a0216efb81c86d.tar.gz blogs-e2de0e3afccb1bd8ebf0616909a0216efb81c86d.tar.bz2 blogs-e2de0e3afccb1bd8ebf0616909a0216efb81c86d.zip | |
set status values so that in regular blog rolls we don't get drafts included. create new status option in last_blog_posts to included drafts be requesting user
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_last_blog_posts.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/mod_last_blog_posts.php b/modules/mod_last_blog_posts.php index 2201c43..6689f35 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.20 2007/12/09 06:08:52 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_last_blog_posts.php,v 1.21 2008/05/20 16:42:08 wjames5 Exp $ * @package blogs * @subpackage modules */ @@ -41,6 +41,14 @@ if( !$gBitUser->hasPermission( 'p_blogs_admin' )) { $listHash['content_perm_name'] = 'p_blogs_view'; } +if ( !empty( $module_params['status'] ) && $module_params['status'] = "draft" && isset( $gBitUser->mUserId ) ){ + $listHash['enforce_status'] = TRUE; + $listHash['min_status_id'] = -6; + $listHash['max_status_id'] = -4; + $listHash['min_owner_status_id'] = -6; + $listHash['user_id'] = $gBitUser->mUserId; +} + $blogPost = new BitBlogPost(); $blogPosts = $blogPost->getList( $listHash ); |
