Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37245 Blog: Bloglevel is used for checking if blog is enabled

  • Loading branch information...
commit 8aa12adcf26ff2f0b61cd6f0288f2886c8c55bf7 1 parent 6f9e83e
@rajeshtaneja rajeshtaneja authored damyon committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  blog/lib.php
View
2  blog/lib.php
@@ -1053,7 +1053,7 @@ function blog_comment_validate($comment_param) {
global $CFG, $DB, $USER;
// Check if blogs are enabled user can comment.
- if (empty($CFG->enableblogs) || empty($CFG->blogusecomments)) {
+ if (empty($CFG->bloglevel) || empty($CFG->blogusecomments)) {
throw new comment_exception('nopermissiontocomment');
}
Please sign in to comment.
Something went wrong with that request. Please try again.