diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 16:31:49 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-25 16:31:49 +0000 |
commit | da06558a9b72618658d09bc13dd8b399bc9d93a4 (patch) | |
tree | 52cdb139f44035eb5115ab774fc3a7ee07d858b9 | |
parent | a7f418d3227d0c1cb5fe80c2cb6c29649accb58d (diff) | |
download | elgg-da06558a9b72618658d09bc13dd8b399bc9d93a4.tar.gz elgg-da06558a9b72618658d09bc13dd8b399bc9d93a4.tar.bz2 |
check to see if comments are on or off
git-svn-id: http://code.elgg.org/elgg/trunk@6207 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/blog/blog_lib.php | 5 |
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( |