Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix undefined variable cal_d to day, cal_m to mon, and cal_y to yr.

change page heading string and change the value for set_focuscontrol to use element name.
  • Loading branch information...
commit 277d7732c2c0f6ccb09b60885df700e7831f14d5 1 parent 1470ded
Rossiani Wijaya authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 calendar/export.php
View
16 calendar/export.php
@@ -65,14 +65,14 @@
if ($action !== '') {
$url->param('action', $action);
}
-if ($cal_d !== 0) {
- $url->param('cal_d', $cal_d);
+if ($day !== 0) {
+ $url->param('cal_d', $day);
}
-if ($cal_m !== 0) {
- $url->param('cal_m', $cal_m);
+if ($mon !== 0) {
+ $url->param('cal_m', $mon);
}
-if ($cal_y !== 0) {
- $url->param('cal_y', $cal_y);
+if ($yr !== 0) {
+ $url->param('cal_y', $yr);
}
if ($course !== 0) {
$url->param('course', $course);
@@ -122,9 +122,9 @@
$PAGE->navbar->add($pagetitle);
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$pagetitle);
-$PAGE->set_heading($strcalendar);
+$PAGE->set_heading($COURSE->fullname);
$PAGE->set_button($prefsbutton);
-$PAGE->set_focuscontrol('eventform.name');
+$PAGE->set_focuscontrol('pw_all');
echo $OUTPUT->header();
Please sign in to comment.
Something went wrong with that request. Please try again.