summaryrefslogtreecommitdiff
path: root/library/WT/Controller
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-08-16 11:04:10 +0100
committerGreg Roach <fisharebest@gmail.com>2013-08-16 11:04:10 +0100
commit531a5928c6970624ea17e61769e987414f6ed343 (patch)
tree857a8311e85c5d6b0820caa2e1c69e9fd08d1d5b /library/WT/Controller
parentcd8f177cc56f044e9c8f4c9185fa444de6fc1586 (diff)
downloadwebtrees-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.php5
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 '&nbsp;<span dir="ltr" class="person_box">&nbsp;', ($sosa*2), '&nbsp;</span>&nbsp;', WT_I18N::translate('and');
echo '&nbsp;<span dir="ltr" class="person_boxF">&nbsp;', ($sosa*2+1), '&nbsp;</span>&nbsp;';
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>';
}
}