cvs: smarty / NEWS /libs/plugins function.html_select_date.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1112897181@cvsserver> |
messju Thu Apr 7 14:06:21 2005 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins function.html_select_date.php
Log:
fixed handling of selected month html_select_date
thanks to Yuri Weseman for providing problem+solution
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.497&r2=1.498&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.497 smarty/NEWS:1.498
--- smarty/NEWS:1.497 Thu Mar 31 09:38:43 2005
+++ smarty/NEWS Thu Apr 7 14:06:19 2005
@@ -1,3 +1,5 @@
+ - fix handling of selected month html_select_date (Yuri Weseman, messju)
+
Version 2.6.9 (Mar 31, 2005)
----------------------------
http://cvs.php.net/diff.php/smarty/libs/plugins/function.html_select_date.php?r1=1.29&r2=1.30&ty=u
Index: smarty/libs/plugins/function.html_select_date.php
diff -u smarty/libs/plugins/function.html_select_date.php:1.29 smarty/libs/plugins/function.html_select_date.php:1.30
--- smarty/libs/plugins/function.html_select_date.php:1.29 Fri Sep 24 10:37:02 2004
+++ smarty/libs/plugins/function.html_select_date.php Thu Apr 7 14:06:21 2005
@@ -198,7 +198,7 @@
$month_result .= smarty_function_html_options(array('output' => $month_names,
'values' => $month_values,
- 'selected' => $a=$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '',
+ 'selected' => (int)$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '',
'print_result' => false),
$smarty);
$month_result .= '</select>';
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php