MDL-65703 calendar: do not add course param for site calendar

This commit is contained in:
Simey Lameze
2019-06-04 19:33:45 +08:00
parent 5d384053b0
commit 6b2fca2f3d
-2
View File
@@ -100,8 +100,6 @@ class footer_options_exporter extends exporter {
$params['course'] = $this->calendar->course->id;
} else if (null !== $this->calendar->categoryid && $this->calendar->categoryid > 0) {
$params['category'] = $this->calendar->categoryid;
} else {
$params['course'] = SITEID;
}
return $params;