added xhtml compliance to html_select_date's year_as_text-feature

thanks to Mark West
This commit is contained in:
messju
2005-04-07 18:11:24 +00:00
parent 04a503f2cf
commit ced18471d2
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- updated html_select_date's year_as_text-feature to be xhtml compliant
(Mark West, messju)
- fix handling of selected month html_select_date (Yuri Weseman, messju) - fix handling of selected month html_select_date (Yuri Weseman, messju)
Version 2.6.9 (Mar 31, 2005) Version 2.6.9 (Mar 31, 2005)

View File

@@ -253,7 +253,7 @@ function smarty_function_html_select_date($params, &$smarty)
if (null !== $year_extra){ if (null !== $year_extra){
$year_result .= ' ' . $year_extra; $year_result .= ' ' . $year_extra;
} }
$year_result .= '>'; $year_result .= ' />';
} else { } else {
$years = range((int)$start_year, (int)$end_year); $years = range((int)$start_year, (int)$end_year);
if ($reverse_years) { if ($reverse_years) {