From db056cf2cbe19bcdb5a57ec6965f3badc1786266 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 01:11:16 +0000 Subject: [PATCH] MDL-19808 Upgraded calls to print_time_selector and print_date_selector --- mod/forum/search.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/forum/search.php b/mod/forum/search.php index 94dca5446f..7a426e1fbb 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -315,8 +315,10 @@ function forum_print_big_search_form($course) { } echo ' '; - print_date_selector('today', 'tomonth', 'toyear', $dateto); - print_time_selector('tohour', 'tominute', $dateto); + $selectors = moodle_select::make_time_selectors(array('days' => 'today','months' => 'tomonth', 'years' => 'toyear', 'hours' => 'tohour', 'minutes' => 'tominute'), $dateto); + foreach ($selectors as $select) { + echo $OUTPUT->select($select); + } echo ''; echo ''; -- 2.39.5