diff options
Diffstat (limited to 'framework/I18N/core')
-rw-r--r-- | framework/I18N/core/DateTimeFormatInfo.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/I18N/core/DateTimeFormatInfo.php b/framework/I18N/core/DateTimeFormatInfo.php index fb6793c5..685a95c1 100644 --- a/framework/I18N/core/DateTimeFormatInfo.php +++ b/framework/I18N/core/DateTimeFormatInfo.php @@ -287,11 +287,15 @@ class DateTimeFormatInfo * culture-specific abbreviated names of the months. The array
* for InvariantInfo contains "Jan", "Feb", "Mar", "Apr", "May",
* "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", and "Dec".
+ * Returns wide names if abbreviated names doesn't exist.
* @return array abbreviated month names.
*/
function getAbbreviatedMonthNames()
{
- return $this->data['monthNames']['format']['abbreviated'];
+ if (isset($this->data['monthNames']['format']['abbreviated']))
+ return $this->data['monthNames']['format']['abbreviated'];
+ else
+ return $this->data['monthNames']['format']['wide'];
}
/**
|