diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-08-16 10:45:06 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-08-16 10:45:06 +0100 |
| commit | f9ce0ca4b26c044b778b7d09c834b7bb42b94c51 (patch) | |
| tree | e178ba0e0d1797d233a8c8121917c9e99f795655 /library/WT/Controller | |
| parent | 124b4933aa4daa17b1cd8a71690912c81d9779a2 (diff) | |
| download | webtrees-f9ce0ca4b26c044b778b7d09c834b7bb42b94c51.tar.gz webtrees-f9ce0ca4b26c044b778b7d09c834b7bb42b94c51.tar.bz2 webtrees-f9ce0ca4b26c044b778b7d09c834b7bb42b94c51.zip | |
Ancestry chart shows private marriage details
Diffstat (limited to 'library/WT/Controller')
| -rw-r--r-- | library/WT/Controller/Ancestry.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/library/WT/Controller/Ancestry.php b/library/WT/Controller/Ancestry.php index a7baab0ab4..665ca0ecbe 100644 --- a/library/WT/Controller/Ancestry.php +++ b/library/WT/Controller/Ancestry.php @@ -141,11 +141,13 @@ class WT_Controller_Ancestry extends WT_Controller_Chart { echo '<img src="', $WT_IMAGES['spacer'], '" height="2" width="', $Dindent, '" align="middle" alt=""><a href="#" onclick="return expand_layer(\'sosa_', $sosa, '\');" class="top"><i id="sosa_', $sosa, '_img" class="icon-minus" title="', WT_I18N::translate('View Family'), '"></i></a>'; 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> '; - $marriage = $family->getMarriage(); - if ($marriage) { - echo ' <a href="', $family->getHtmlUrl(), '" class="details1">'; - $marriage->print_simple_fact(); - echo '</a>'; + if ($family->canShow()) { + $marriage = $family->getFirstFact('MARR'); + if ($marriage) { + echo ' <a href="', $family->getHtmlUrl(), '" class="details1">'; + $marriage->print_simple_fact(); + echo '</a>'; + } } echo '</span>'; // display parents recursively - or show empty boxes |
