]> git.mjollnir.org Git - moodle.git/commitdiff
There are serious problems with event.php and mini-calendars, mainly because
authordefacer <defacer>
Wed, 28 Apr 2004 10:20:30 +0000 (10:20 +0000)
committerdefacer <defacer>
Wed, 28 Apr 2004 10:20:30 +0000 (10:20 +0000)
we don't have much information about courses at that stage. Started to fix
things up, but there is still work to be done.

calendar/event.php

index 80aefeb2531b6c10292c7b68f898800e104bc50f..ba6f05d05035e27556b89403a0e23ef24e9f0c11 100644 (file)
 
     // START: Last column (3-month display)
     echo '<td valign="top" width="'.$side.'">';
+
+    // [pj] There is a whole class of problems with minimonths in event.php, which
+    // was why there were no minimonths before... I fixed them as best I could for now.
+
+    // These were left out, and the whole thing was simply broken
+    $defaultcourses = calendar_get_default_courses();
+    echo calendar_overlib_html();
+    calendar_set_filters($courses, $groups, $users, $defaultcourses, $defaultcourses);
+
     print_side_block_start(get_string('monthlyview', 'calendar'), '', 'sideblockmain');
     list($prevmon, $prevyr) = calendar_sub_month($mon, $yr);
     list($nextmon, $nextyr) = calendar_add_month($mon, $yr);
-    echo calendar_filter_controls($_GET['view']);
+    // This is also broken; set.php doesn't know how to redirect back to event.php
+    // echo calendar_filter_controls('event');
     echo '<p>';
     echo calendar_top_controls('display', array('m' => $prevmon, 'y' => $prevyr));
     echo calendar_get_mini($courses, $groups, $users, $prevmon, $prevyr);