From cba168a6797a9ed8495a2eb5ac92795bdeba76dd Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 19 Jun 2007 17:54:30 +0000 Subject: [PATCH] Now calendar export have some correct defaults. MDL-10175 Merged from MOODLE_18_STABLE --- calendar/export_basic.html | 4 ++-- calendar/export_execute.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/export_basic.html b/calendar/export_basic.html index 56e1da3012..c0778dac5a 100644 --- a/calendar/export_basic.html +++ b/calendar/export_basic.html @@ -3,13 +3,13 @@
:
-
+

:
-
+

diff --git a/calendar/export_execute.php b/calendar/export_execute.php index 87286f0c01..72904e11b1 100644 --- a/calendar/export_execute.php +++ b/calendar/export_execute.php @@ -19,8 +19,8 @@ if ($authtoken != sha1($username . $user->password)) { die('Invalid authentication token'); } -$what = optional_param('preset_what', '', PARAM_ALPHA); -$time = optional_param('preset_time', '', PARAM_ALPHA); +$what = optional_param('preset_what', 'all', PARAM_ALPHA); +$time = optional_param('preset_time', 'weeknow', PARAM_ALPHA); $now = usergetdate(time()); // Let's see if we have sufficient and correct data @@ -37,7 +37,7 @@ if(!empty($what) && !empty($time)) { $courses[SITEID] = new stdClass; $courses[SITEID]->shortname = get_string('globalevents', 'calendar'); } - + switch($time) { case 'weeknow': $startweekday = get_user_preferences('calendar_startwday', CALENDAR_STARTING_WEEKDAY); -- 2.39.5