MDL-19808 Upgraded calls to print_time_selector and print_date_selector
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:11:16 +0000 (01:11 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:11:16 +0000 (01:11 +0000)
mod/forum/search.php

index 94dca5446fa007f567762e1fb81dbf86bb622122..7a426e1fbb06e8722c56a5cc3270d3deb0705c1a 100644 (file)
@@ -315,8 +315,10 @@ function forum_print_big_search_form($course) {
     }
 
     echo '<input name="timetorestrict" type="checkbox" value="1" alt="'.get_string('searchdateto', 'forum').'" onclick="return lockoptions(\'searchform\', \'timetorestrict\', timetoitems)" ' .$datetochecked. ' /> ';
-    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 '<input type="hidden" name="htoday" value="0" />';
     echo '<input type="hidden" name="htomonth" value="0" />';