diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-03-05 07:14:09 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-03-05 07:14:09 -0500 |
commit | d149c0038d335133ed1628c105328b1e7a6681ea (patch) | |
tree | 63f4ab47fb99b99c5dc24b2d36d61f1edb6d2c98 /mod/blog/lib | |
parent | 6b3f37b268426c0961755e9c34c260f5db9c9903 (diff) | |
download | elgg-d149c0038d335133ed1628c105328b1e7a6681ea.tar.gz elgg-d149c0038d335133ed1628c105328b1e7a6681ea.tar.bz2 |
don't allow comments on draft blog posts
Diffstat (limited to 'mod/blog/lib')
-rw-r--r-- | mod/blog/lib/blog.php | 4 |
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); } |