Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-31203 mod_forum: advanced search posts must be newer older than d…

…ate, reverts date
  • Loading branch information...
commit 31238c016e322829b1867ee1deefae7cb400f59b 1 parent 58db57a
@kanikagoyal kanikagoyal authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/forum/search.php
View
10 mod/forum/search.php
@@ -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" />';
Please sign in to comment.
Something went wrong with that request. Please try again.