From: defacer Date: Thu, 20 May 2004 10:02:49 +0000 (+0000) Subject: Fix for bugs 1423, 1424 (duplicated): X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e1ce345e40491822aa16cb53ca0384bd18dd5295;p=moodle.git Fix for bugs 1423, 1424 (duplicated): Now hiding/showing course events in the course view works once more. Ready for a release, it seems.... --- diff --git a/blocks/calendar_month/block_calendar_month.php b/blocks/calendar_month/block_calendar_month.php index 770d7c5881..60b68c51cf 100644 --- a/blocks/calendar_month/block_calendar_month.php +++ b/blocks/calendar_month/block_calendar_month.php @@ -5,7 +5,7 @@ class CourseBlock_calendar_month extends MoodleBlock { $this->title = get_string('calendar', 'calendar'); $this->content_type = BLOCK_TYPE_TEXT; $this->course = $course; - $this->version = 2004041000; + $this->version = 2004052000; } function get_content() { @@ -36,7 +36,7 @@ class CourseBlock_calendar_month extends MoodleBlock { // 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; } diff --git a/blocks/calendar_upcoming/block_calendar_upcoming.php b/blocks/calendar_upcoming/block_calendar_upcoming.php index e9c7c12023..01b57389d1 100644 --- a/blocks/calendar_upcoming/block_calendar_upcoming.php +++ b/blocks/calendar_upcoming/block_calendar_upcoming.php @@ -5,7 +5,7 @@ class CourseBlock_calendar_upcoming extends MoodleBlock { $this->title = get_string('upcomingevents', 'calendar'); $this->content_type = BLOCK_TYPE_TEXT; $this->course = $course; - $this->version = 2004051000; + $this->version = 2004052000; } function get_content() { @@ -37,7 +37,7 @@ class CourseBlock_calendar_upcoming extends MoodleBlock { // 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; }