aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-03-05 07:14:09 -0500
committerCash Costello <cash.costello@gmail.com>2013-03-05 07:14:09 -0500
commitd149c0038d335133ed1628c105328b1e7a6681ea (patch)
tree63f4ab47fb99b99c5dc24b2d36d61f1edb6d2c98 /mod
parent6b3f37b268426c0961755e9c34c260f5db9c9903 (diff)
downloadelgg-d149c0038d335133ed1628c105328b1e7a6681ea.tar.gz
elgg-d149c0038d335133ed1628c105328b1e7a6681ea.tar.bz2
don't allow comments on draft blog posts
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/lib/blog.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index 8f15bd347..9753f27a8 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -39,8 +39,8 @@ function blog_get_page_content_read($guid = NULL) {
elgg_push_breadcrumb($blog->title);
$return['content'] = elgg_view_entity($blog, array('full_view' => true));
- //check to see if comment are on
- if ($blog->comments_on != 'Off') {
+ // check to see if we should allow comments
+ if ($blog->comments_on != 'Off' && $blog->status == 'published') {
$return['content'] .= elgg_view_comments($blog);
}