mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-47408 user: Add enableblogs checking before adding blog's link.
This commit is contained in:
parent
d07b0302a9
commit
e2e1c98a7f
@ -691,7 +691,7 @@ if ($mode === MODE_USERDETAILS) { // Print simple listing.
|
||||
|
||||
$links = array();
|
||||
|
||||
if ($CFG->bloglevel > 0) {
|
||||
if ($CFG->enableblogs && $CFG->bloglevel > 0) {
|
||||
$links[] = html_writer::link(new moodle_url('/blog/index.php?userid='.$user->id), get_string('blogs', 'blog'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user