mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
block/mentees: MDL-20993 - incorrectly assumes SITEID
forward ported from MOODLE_19_STABLE
This commit is contained in:
parent
46de77b6b7
commit
cd44c2b742
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class block_mentees extends block_base {
|
||||||
|
|
||||||
$this->content->text = '<ul>';
|
$this->content->text = '<ul>';
|
||||||
foreach ($usercontexts as $usercontext) {
|
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>';
|
$this->content->text .= '</ul>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue