MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses

This commit is contained in:
dwoolhead 2007-06-22 12:45:20 +00:00
parent 16368d38a4
commit b74be1a20a

View File

@ -51,7 +51,7 @@ class block_calendar_month extends block_base {
if ($courseshown == SITEID) {
// For the front page
$this->content->text .= calendar_overlib_html();
$this->content->text .= calendar_top_controls('frontpage', array('m' => $cal_m, 'y' => $cal_y));
$this->content->text .= calendar_top_controls('frontpage', array('id' => $courseshown, 'm' => $cal_m, 'y' => $cal_y));
$this->content->text .= calendar_get_mini($courses, $group, $user, $cal_m, $cal_y);
// No filters for now