CodeIgniter Forums
CI 1.7.2 Bug found after upgrading from 1.7.1 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI 1.7.2 Bug found after upgrading from 1.7.1 (/showthread.php?tid=28057)



CI 1.7.2 Bug found after upgrading from 1.7.1 - El Forum - 02-28-2010

[eluser]Unknown[/eluser]
libraries/Calendar.php:

function get_month_name() : line 273.

May is written as : mayl

Looks like a Copy-Past from April , and forgot the 'l' ;-)


CI 1.7.2 Bug found after upgrading from 1.7.1 - El Forum - 03-01-2010

[eluser]Pascal Kriete[/eluser]
It's actually done on purpose. mayl is the language key for the long name.

We have two ways to display the month. It can either say "Dec" or "December". The language keys use the equivalent values. So it's lang("cal_dec") and lang("cal_december"). May is a bit of a problem since it only has 3 letters. In english you could use the same language key, but we can't make that assumption for other languages.

Thanks for the report.