Skip to content

Commit

Permalink
Merge branch 'm22_MDL-31203_advanced_forum_search_always_reverts_date…
Browse files Browse the repository at this point in the history
…_from_and_to' of git://github.com/kanikagoyal/moodle into MOODLE_22_STABLE
  • Loading branch information
danpoltawski committed Jul 2, 2012
2 parents b8251dd + 31238c0 commit bf94170
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/forum/search.php
Expand Up @@ -369,11 +369,11 @@ 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. ' /> ';
$selectors = html_writer::select_time('days', 'fromday', $dateto)
. html_writer::select_time('months', 'frommonth', $dateto)
. html_writer::select_time('years', 'fromyear', $dateto)
. html_writer::select_time('hours', 'fromhour', $dateto)
. html_writer::select_time('minutes', 'fromminute', $dateto);
$selectors = html_writer::select_time('days', 'today', $dateto)
. html_writer::select_time('months', 'tomonth', $dateto)
. html_writer::select_time('years', 'toyear', $dateto)
. html_writer::select_time('hours', 'tohour', $dateto)
. html_writer::select_time('minutes', 'tominute', $dateto);
echo $selectors;

echo '<input type="hidden" name="htoday" value="0" />';
Expand Down

0 comments on commit bf94170

Please sign in to comment.