From 269255473f00fb3393ec5dd155e74dc4d4934de7 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Mon, 8 Aug 2011 12:06:46 +0800 Subject: [PATCH] MDL-27752_m20 Calendar export: fixed typo in url parameter --- calendar/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/view.php b/calendar/view.php index a1a06beb02a..8e4c3f794b5 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -184,7 +184,7 @@ if (!empty($CFG->enablecalendarexport)) { echo $OUTPUT->single_button(new moodle_url('export.php', array('course'=>$courseid)), get_string('exportcalendar', 'calendar')); if (isloggedin()) { $authtoken = sha1($USER->username . $USER->password . $CFG->calendar_exportsalt); - $link = new moodle_url('/calendar/export_execute.php', array('preset_what'=>'all', 'prest_time'=>'recentupcoming', 'username'=>$USER->username, 'authtoken'=>$authtoken)); + $link = new moodle_url('/calendar/export_execute.php', array('preset_what'=>'all', 'preset_time'=>'recentupcoming', 'username'=>$USER->username, 'authtoken'=>$authtoken)); $icon = html_writer::empty_tag('img', array('src'=>$OUTPUT->pix_url('i/ical'), 'height'=>'14', 'width'=>'36', 'alt'=>get_string('ical', 'calendar'), 'title'=>get_string('quickdownloadcalendar', 'calendar'))); echo html_writer::tag('a', $icon, array('href'=>$link)); }