From 85ed1699f46d4abe09cb17c5e1ac3117435b6141 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 01:07:51 +0000 Subject: [PATCH] MDL-19808 Upgraded calls to print_time_selector and print_date_selector --- mod/forum/search.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mod/forum/search.php b/mod/forum/search.php index 9d8eb616a2..94dca5446f 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -246,7 +246,7 @@ * @todo Document this function */ function forum_print_big_search_form($course) { - global $CFG, $DB, $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto, $PAGE; + global $CFG, $DB, $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto, $PAGE, $OUTPUT; print_simple_box(get_string('searchforumintro', 'forum'), 'center', '', '', 'searchbox', 'intro'); @@ -291,9 +291,10 @@ function forum_print_big_search_form($course) { } echo ' '; - print_date_selector('fromday', 'frommonth', 'fromyear', $datefrom); - print_time_selector('fromhour', 'fromminute', $datefrom); - + $selectors = moodle_select::make_time_selectors(array('days' => 'fromday','months' => 'frommonth', 'years' => 'fromyear', 'hours' => 'fromhour', 'minutes' => 'fromminute'), $datefrom); + foreach ($selectors as $select) { + echo $OUTPUT->select($select); + } echo ''; echo ''; echo ''; -- 2.39.5