From: nicolasconnault Date: Thu, 6 Aug 2009 01:08:50 +0000 (+0000) Subject: MDL-19789 Upgraded calls to print_time_selector and print_date_selector X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb587f9b10ae8e7741c99d934b70c1b8a8dd36f4;p=moodle.git MDL-19789 Upgraded calls to print_time_selector and print_date_selector --- diff --git a/backup/restore_form.html b/backup/restore_form.html index 22445249b0..cc59e9e4fb 100644 --- a/backup/restore_form.html +++ b/backup/restore_form.html @@ -284,7 +284,11 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { /// (some formats like main page, social..., haven't it and rolling dates /// from 0 produces crazy dates. MDL-10125 if ($form1->startdate) { - print_date_selector("startday", "startmonth", "startyear", $form1->startdate); + $dayselector = moodle_select::make_time_selector('days', "startday", $form1->startdate); + $monthselector = moodle_select::make_time_selector('months', "startmonth", $form1->startdate); + $yearselector = moodle_select::make_time_selector('years', "startyear", $form1->startdate); + + echo $OUTPUT->select($dayselector) . $OUTPUT->select($monthselector) . $OUTPUT->select($yearselector); helpbutton("coursestartdate", get_string("startdate")); } else { print_string('notavailable');