diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2010-05-23 18:25:50 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2010-05-23 18:25:50 +0000 |
| commit | a7db82eab87b1b2dbfda653596ab2e86e572ccd6 (patch) | |
| tree | 6a59500b999f2b1f852ff8bebfd4b4cacdefb379 /includes | |
| parent | bf18f39af03ba09197c896ec7783e956b9eedff0 (diff) | |
| download | webtrees-a7db82eab87b1b2dbfda653596ab2e86e572ccd6.tar.gz webtrees-a7db82eab87b1b2dbfda653596ab2e86e572ccd6.tar.bz2 webtrees-a7db82eab87b1b2dbfda653596ab2e86e572ccd6.zip | |
minor change in calendar
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/classes/class_date.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/class_date.php b/includes/classes/class_date.php index 2f2ff65dc2..ec4fcf5272 100644 --- a/includes/classes/class_date.php +++ b/includes/classes/class_date.php @@ -397,7 +397,7 @@ class CalendarDate { // Format a date // $format - format string: the codes are specified in http://php.net/date - function Format($format, $qualifier='') { + function Format($format, $qualifier='', $day=true) { // Legacy formats (DMY) become jFY if (preg_match('/^[DMY,. ;\/-]+$/', $format)) { $format=strtr($format, 'DM', 'jF'); @@ -416,7 +416,7 @@ class CalendarDate { if (!$this->d || !$this->m || !$this->y) { $format=trim($format, ',. ;/-'); } - if ($this->d) { + if ($this->d && $day) { $case='GENITIVE'; } else { switch ($qualifier) { |
