From: dwoolhead Date: Fri, 22 Jun 2007 12:45:20 +0000 (+0000) Subject: MDL-10084 propogate course id through calendar pages to ensure consistent display... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b74be1a20a6e66dd3737113f80daf131ce31168d;p=moodle.git MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses --- diff --git a/blocks/calendar_month/block_calendar_month.php b/blocks/calendar_month/block_calendar_month.php index 24e1738c0e..c7dae668fa 100644 --- a/blocks/calendar_month/block_calendar_month.php +++ b/blocks/calendar_month/block_calendar_month.php @@ -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