mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
block/mentees: MDL-20993 - incorrectly assumes SITEID
forward ported from MOODLE_19_STABLE
This commit is contained in:
parent
46de77b6b7
commit
cd44c2b742
@ -36,7 +36,7 @@ class block_mentees extends block_base {
|
||||
|
||||
$this->content->text = '<ul>';
|
||||
foreach ($usercontexts as $usercontext) {
|
||||
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&course=1">'.fullname($usercontext).'</a></li>';
|
||||
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&course='.SITEID.'">'.fullname($usercontext).'</a></li>';
|
||||
}
|
||||
$this->content->text .= '</ul>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user