|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jezbon Smarty n00b
Joined: 23 Apr 2012 Posts: 2 Location: Sydney, Australia
|
Posted: Wed Apr 25, 2012 5:50 am Post subject: Notice: html_select_date: month_names must be an array of 12 |
|
|
Hi Guys,
Not sure if anyone else has experienced this problem. I've upgraded from Smarty 3.0.8 to 3.1.8 and now html_select_date when used to produce a month drop-down select has the following message:
Notice: html_select_date: month_names must be an array of 12 strings in /[.trunk..]/includes/Smarty-3.1.8/libs/plugins/function.html_select_date.php on line 128
If I change back to 3.0.8, it's fine again. My use of html_select_date is as follows:
{html_select_date prefix='date-when-1-' field_order='DMY' month_names='%b' all_extra ='class ="small"' start_year='-0' end_year='+2'}
Despite the notice message, everything still appears to work and the source HTML produced is fine.
Have I just done something silly here or is there actually a problem somewhere?
Thanks. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Apr 25, 2012 9:21 am Post subject: |
|
|
In the documenation for html_date "month_names" and "month_format" was confused. Correctly your code shlud be
Code: | {html_select_date prefix='date-when-1-' field_order='DMY' month_format='%b' all_extra ='class ="small"' start_year='-0' end_year='+2'} |
|
|
Back to top |
|
jezbon Smarty n00b
Joined: 23 Apr 2012 Posts: 2 Location: Sydney, Australia
|
Posted: Wed Apr 25, 2012 11:55 am Post subject: |
|
|
U.Tews wrote: | In the documenation for html_date "month_names" and "month_format" was confused. Correctly your code shlud be
Code: | {html_select_date prefix='date-when-1-' field_order='DMY' month_format='%b' all_extra ='class ="small"' start_year='-0' end_year='+2'} |
|
Ah, thanks U.Tews shall change that. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|