diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-11-03 21:40:36 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-11-03 21:40:36 +0000 |
| commit | 49d5f1d7fda7e38d66606928f6b0f48565eb1188 (patch) | |
| tree | 9424dc4ee0bf3e666d3f2678bc4f629f635194cd /app/Date | |
| parent | 37231d1e839cad24e911f38c73f4dc77a58e3eec (diff) | |
| download | webtrees-49d5f1d7fda7e38d66606928f6b0f48565eb1188.tar.gz webtrees-49d5f1d7fda7e38d66606928f6b0f48565eb1188.tar.bz2 webtrees-49d5f1d7fda7e38d66606928f6b0f48565eb1188.zip | |
Fix: #2011 - missing 'ged' parameter in links to calendar
Diffstat (limited to 'app/Date')
| -rw-r--r-- | app/Date/AbstractCalendarDate.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Date/AbstractCalendarDate.php b/app/Date/AbstractCalendarDate.php index fab1ce1ede..3fd5237cb3 100644 --- a/app/Date/AbstractCalendarDate.php +++ b/app/Date/AbstractCalendarDate.php @@ -21,6 +21,7 @@ use Fisharebest\ExtCalendar\CalendarInterface; use Fisharebest\ExtCalendar\JewishCalendar; use Fisharebest\Webtrees\DebugBar; use Fisharebest\Webtrees\I18N; +use Fisharebest\Webtrees\Tree; /** * Classes for Gedcom Date/Calendar functionality. @@ -961,10 +962,11 @@ abstract class AbstractCalendarDate * Create a URL that links this date to the WT calendar * * @param string $date_format + * @param Tree $tree * * @return string */ - public function calendarUrl(string $date_format): string + public function calendarUrl(string $date_format, Tree $tree): string { if (strpbrk($date_format, 'dDj') && $this->day) { // If the format includes a day, and the date also includes a day, then use the day view @@ -983,6 +985,7 @@ abstract class AbstractCalendarDate 'month' => $this->formatGedcomMonth(), 'day' => $this->formatGedcomDay(), 'view' => $view, + 'ged' => $tree->getName(), ]); } } |
