diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-08-16 11:04:10 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-08-16 11:04:10 +0100 |
| commit | 531a5928c6970624ea17e61769e987414f6ed343 (patch) | |
| tree | 857a8311e85c5d6b0820caa2e1c69e9fd08d1d5b /library/WT/Controller | |
| parent | cd8f177cc56f044e9c8f4c9185fa444de6fc1586 (diff) | |
| download | webtrees-531a5928c6970624ea17e61769e987414f6ed343.tar.gz webtrees-531a5928c6970624ea17e61769e987414f6ed343.tar.bz2 webtrees-531a5928c6970624ea17e61769e987414f6ed343.zip | |
Show _NMR as well as MARR on charts
Diffstat (limited to 'library/WT/Controller')
| -rw-r--r-- | library/WT/Controller/Ancestry.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/WT/Controller/Ancestry.php b/library/WT/Controller/Ancestry.php index 665ca0ecbe..f0ac7b7a18 100644 --- a/library/WT/Controller/Ancestry.php +++ b/library/WT/Controller/Ancestry.php @@ -142,10 +142,9 @@ class WT_Controller_Ancestry extends WT_Controller_Chart { echo ' <span dir="ltr" class="person_box"> ', ($sosa*2), ' </span> ', WT_I18N::translate('and'); echo ' <span dir="ltr" class="person_boxF"> ', ($sosa*2+1), ' </span> '; if ($family->canShow()) { - $marriage = $family->getFirstFact('MARR'); - if ($marriage) { + foreach ($family->getFacts(WT_EVENTS_MARR) as $fact) { echo ' <a href="', $family->getHtmlUrl(), '" class="details1">'; - $marriage->print_simple_fact(); + $fact->print_simple_fact(); echo '</a>'; } } |
