block/mentees: MDL-20993 - incorrectly assumes SITEID

forward ported from MOODLE_19_STABLE
This commit is contained in:
Dan Poltawski 2010-02-24 08:46:33 +00:00
parent 46de77b6b7
commit cd44c2b742

View File

@ -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.'&amp;course=1">'.fullname($usercontext).'</a></li>';
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&amp;course='.SITEID.'">'.fullname($usercontext).'</a></li>';
}
$this->content->text .= '</ul>';
}