Permalink
Browse files

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

  • Loading branch information...
1 parent 5e3412d commit 0dcf51a8b38aa5729cd1528e4e653ea1ab305922 @danpoltawski danpoltawski committed Feb 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tag/index.php
View
@@ -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->bloglevel) && has_capability('moodle/blog:view', $systemcontext)) {
require_once($CFG->dirroot.'/blog/lib.php');
require_once($CFG->dirroot.'/blog/locallib.php');

0 comments on commit 0dcf51a

Please sign in to comment.