From 38befbef7a7ff586bb770e8b9d5e344e8582ec27 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Wed, 15 Aug 2012 16:21:25 +0800 Subject: [PATCH] MDL-34565 - remove duplicate labeling --- mod/forum/search.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/mod/forum/search.php b/mod/forum/search.php index ba4472daf58..e4a59414a34 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -343,15 +343,10 @@ function forum_print_big_search_form($course) { } echo ' '; - $selectors = html_writer::label(get_string('days'), 'menufromday', false, array('class' => 'accesshide')) - . html_writer::select_time('days', 'fromday', $datefrom) - . html_writer::label(get_string('months'), 'menufrommonth', false, array('class' => 'accesshide')) + $selectors = html_writer::select_time('days', 'fromday', $datefrom) . html_writer::select_time('months', 'frommonth', $datefrom) - . html_writer::label(get_string('years'), 'menufromyear', false, array('class' => 'accesshide')) . html_writer::select_time('years', 'fromyear', $datefrom) - . html_writer::label(get_string('hours'), 'menufromhour', false, array('class' => 'accesshide')) . html_writer::select_time('hours', 'fromhour', $datefrom) - . html_writer::label(get_string('minutes'), 'menufromminute', false, array('class' => 'accesshide')) . html_writer::select_time('minutes', 'fromminute', $datefrom); echo $selectors; echo ''; @@ -374,15 +369,10 @@ function forum_print_big_search_form($course) { } echo ' '; - $selectors = html_writer::label(get_string('days'), 'menutoday', false, array('class' => 'accesshide')) - . html_writer::select_time('days', 'today', $dateto) - . html_writer::label(get_string('months'), 'menutomonth', false, array('class' => 'accesshide')) + $selectors = html_writer::select_time('days', 'today', $dateto) . html_writer::select_time('months', 'tomonth', $dateto) - . html_writer::label(get_string('years'), 'menutoyear', false, array('class' => 'accesshide')) . html_writer::select_time('years', 'toyear', $dateto) - . html_writer::label(get_string('hours'), 'menutohour', false, array('class' => 'accesshide')) . html_writer::select_time('hours', 'tohour', $dateto) - . html_writer::label(get_string('minutes'), 'menutominute', false, array('class' => 'accesshide')) . html_writer::select_time('minutes', 'tominute', $dateto); echo $selectors;