Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-13252 Fix context to always use course context, rather than insta…

…nce->page.
  • Loading branch information...
commit becdc870eda98eeb1e63482639a7743300647c73 1 parent ebf2def
mchurch authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  blocks/participants/block_participants.php
View
3  blocks/participants/block_participants.php
@@ -49,8 +49,7 @@ function get_content() {
$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>';
Please sign in to comment.
Something went wrong with that request. Please try again.