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

This commit is contained in:
Rajesh Taneja
2013-05-08 14:54:01 +08:00
committed by Damyon Wiese
parent b9c29ff6d3
commit f9e27e8323
+1 -1
View File
@@ -1048,7 +1048,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');
}