Now hiding/showing course events in the course view works once more.
Ready for a release, it seems....
$this->title = get_string('calendar', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
- $this->version = 2004041000;
+ $this->version = 2004052000;
}
function get_content() {
// We 'll need this later
calendar_set_referring_course($courseshown);
- if($courseshown !== false) {
+ if($courseshown !== false && $SESSION->cal_show_course !== false) {
// By default, the course filter will show this course only
$SESSION->cal_show_course = $courseshown;
}
$this->title = get_string('upcomingevents', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
- $this->version = 2004051000;
+ $this->version = 2004052000;
}
function get_content() {
// We 'll need this later
calendar_set_referring_course($courseshown);
- if($courseshown !== false) {
+ if($courseshown !== false && $SESSION->cal_show_course !== false) {
// By default, the course filter will show this course only
$SESSION->cal_show_course = $courseshown;
}