mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
fixed bug2847
This commit is contained in:
parent
9dfd226cca
commit
e8fce230f4
@ -66,7 +66,7 @@ class block_section_links extends block_base {
|
||||
$display = get_field('course_display', 'display', 'course', $this->instance->pageid, 'userid', $USER->id);
|
||||
}
|
||||
if (!empty($display)) {
|
||||
$link = "$CFG->wwwroot/course/view.php?id=$this->instance->pageid&$sectionname=";
|
||||
$link = $CFG->wwwroot.'/course/view.php?id='.$this->instance->pageid.'&'.$sectionname.'=';
|
||||
} else {
|
||||
$link = '#';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user