Skip to content

Commit

Permalink
MDL-19789 Upgraded calls to print_time_selector and print_date_selector
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent e344da6 commit bb587f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backup/restore_form.html
Expand Up @@ -284,7 +284,11 @@
/// (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');
Expand Down

0 comments on commit bb587f9

Please sign in to comment.