From: dave Date: Tue, 25 May 2010 16:31:49 +0000 (+0000) Subject: check to see if comments are on or off X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=da06558a9b72618658d09bc13dd8b399bc9d93a4;p=lorea%2Felgg.git check to see if comments are on or off git-svn-id: http://code.elgg.org/elgg/trunk@6207 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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(