Skip to content

Commit

Permalink
fix undefined variable cal_d to day, cal_m to mon, and cal_y to yr.
Browse files Browse the repository at this point in the history
change page heading string and change the value for set_focuscontrol to use element name.
  • Loading branch information
rwijaya committed May 27, 2010
1 parent 1470ded commit 277d773
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions calendar/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 277d773

Please sign in to comment.