merged, fixed a bug that blog tabs are displayed when blog is diabled

This commit is contained in:
toyomoyo
2006-06-09 02:53:16 +00:00
parent 7d3f4007cb
commit cc841d67b0
+1 -1
View File
@@ -122,7 +122,7 @@
/// Blog entry, everyone can view
if ($CFG->bloglevel > 1 or $USER->id == $user->id) { // this is weird
if ($CFG->bloglevel > 0) { // only if blog is enabled. Permission check kicks in when display list
$toprow[] = new tabobject('blogs', $CFG->wwwroot.'/blog/index.php?userid='.$user->id.'&courseid='.$course->id, get_string('blogs', 'blog'));
}