Permalink
Browse files

calendar MDL-14693 fix month link when calendar is displayed on a tex…

…t page resource
  • Loading branch information...
1 parent 72f0f08 commit 613d0f81c40b03db069bd13ba73f2dbaa6f54c00 jerome committed Jan 30, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 blocks/calendar_month/block_calendar_month.php
View
2 blocks/calendar_month/block_calendar_month.php
@@ -41,6 +41,8 @@ function get_content() {
calendar_set_referring_course(0);
} else {
+ //MDL-14693: fix calendar on resource page
+ $courseshown = optional_param( 'id', $COURSE->id, PARAM_INT );
// Forcibly filter events to include only those from the particular course we are in.
$filtercourse = array($courseshown => $COURSE);
$groupeventsfrom = array($courseshown => 1);

0 comments on commit 613d0f8

Please sign in to comment.