aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/blog/blog_lib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php
index e2724ae0b..3728b23f7 100644
--- a/mod/blog/blog_lib.php
+++ b/mod/blog/blog_lib.php
@@ -27,7 +27,10 @@ function blog_get_page_content_read($owner_guid = NULL, $guid = NULL) {
} else {
elgg_push_breadcrumb($blog->title, $blog->getURL());
$content = elgg_view_entity($blog, TRUE);
- $content .= elgg_view_comments($blog);
+ //check to see if comment are on
+ if ($blog->comments_on != 'Off') {
+ $content .= elgg_view_comments($blog);
+ }
}
} else {
$content = elgg_view('page_elements/content_header', array(