Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35037 tags: dont display blog entries when blogging disabled

  • Loading branch information...
commit 0388a38edaaa10d899f27c9a27a94a5c093040b3 1 parent 1918a24
@danpoltawski danpoltawski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tag/index.php
View
2  tag/index.php
@@ -96,7 +96,7 @@
require_once($CFG->dirroot.'/tag/coursetagslib.php');
$courses = coursetag_get_tagged_courses($tag->id);
-if (has_capability('moodle/blog:view', $systemcontext)) {
+if (!empty($CFG->enableblogs) && has_capability('moodle/blog:view', $systemcontext)) {
require_once($CFG->dirroot.'/blog/lib.php');
require_once($CFG->dirroot.'/blog/locallib.php');
Please sign in to comment.
Something went wrong with that request. Please try again.