]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10084 propogate course id through calendar pages to ensure consistent display...
authordwoolhead <dwoolhead>
Fri, 22 Jun 2007 12:45:20 +0000 (12:45 +0000)
committerdwoolhead <dwoolhead>
Fri, 22 Jun 2007 12:45:20 +0000 (12:45 +0000)
blocks/calendar_month/block_calendar_month.php

index 24e1738c0eac80fcf7b3bbe28039dbbff8dd5724..c7dae668fa86e6454f4641fb6e678052c91b169b 100644 (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