MDL-13252 Fix context to always use course context, rather than instance->page.

This commit is contained in:
mchurch
2008-01-30 16:54:38 +00:00
parent ebf2deff6a
commit becdc870ed
+1 -2
View File
@@ -49,8 +49,7 @@ class block_participants extends block_list {
$this->instance->pageid = SITEID;
}
if ($this->instance->pageid != SITEID
|| $canviewparticipants) {
if ($COURSE->id != SITEID || $canviewparticipants) {
$this->content->items[] = '<a title="'.get_string('listofallpeople').'" href="'.
$CFG->wwwroot.'/user/index.php?contextid='.$currentcontext->id.'">'.get_string('participants').'</a>';