summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-05-20 16:42:08 +0000
committerwjames5 <will@tekimaki.com>2008-05-20 16:42:08 +0000
commite2de0e3afccb1bd8ebf0616909a0216efb81c86d (patch)
treec88e8577932aa3e54de789ec053e273a2e52beb6 /templates
parent86043bca55bf308fa9b3d01e5495d0a74d7a5033 (diff)
downloadblogs-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 'templates')
-rw-r--r--templates/center_list_blog_posts.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php
index 1403a89..e6cabf0 100644
--- a/templates/center_list_blog_posts.php
+++ b/templates/center_list_blog_posts.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.28 2008/03/29 16:02:05 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.29 2008/05/20 16:42:08 wjames5 Exp $
* @package bitweaver
*/
global $gBitSmarty, $gBlog, $gBitSystem, $gQueryUserId, $moduleParams, $gBitUser;
@@ -84,6 +84,9 @@ if ( !empty( $module_params ) && !empty( $module_params['blog_id'] ) ){
$paginationPath = BLOGS_PKG_URL.'view.php';
}
+// prevent anything lower than publicly visible be displayed in blog roll
+$listHash['enforce_status'] = TRUE;
+$listHash['min_owner_status_id'] = 0;
/* I think this is right - usually we pass in $_REQUEST
* but in this case I pass in the listHash because