Skip to content

Commit

Permalink
calendar MDL-14693 fix month link when calendar is displayed on a tex…
Browse files Browse the repository at this point in the history
…t page resource, merged from 1.9
  • Loading branch information
jerome committed Jan 30, 2009
1 parent f4358aa commit b894086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blocks/calendar_month/block_calendar_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b894086

Please sign in to comment.