summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/functions/functions_charts.php10
-rw-r--r--modules_v3/googlemap/module.php2
2 files changed, 11 insertions, 1 deletions
diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php
index 46a6af0959..108be555c0 100644
--- a/includes/functions/functions_charts.php
+++ b/includes/functions/functions_charts.php
@@ -131,6 +131,11 @@ function print_family_parents(WT_Family $family, $sosa=0, $label='', $parid='',
echo "<td valign=\"top\">";
print_pedigree_person(WT_Individual::getInstance($hfam->getHusband()->getXref()), 1, 4, $personcount);
echo "</td></tr></table>";
+ } elseif (!$hfam->getHusband()) {
+ echo "<table style=\"width: " . ($pbwidth) . "px; height: " . $pbheight . "px;\" border=\"0\"><tr>";
+ echo '<td valign="top">';
+ print_pedigree_person($hfam->getHusband());
+ echo '</td></tr></table>';
}
echo "</td>";
}
@@ -149,6 +154,11 @@ function print_family_parents(WT_Family $family, $sosa=0, $label='', $parid='',
echo '<td valign="top">';
print_pedigree_person(WT_Individual::getInstance($hfam->getWife()->getXref()), 1, 5, $personcount);
echo '</td></tr></table>';
+ } elseif (!$hfam->getWife()) {
+ echo "<table style=\"width: " . ($pbwidth) . "px; height: " . $pbheight . "px;\" border=\"0\"><tr>";
+ echo '<td valign="top">';
+ print_pedigree_person($hfam->getWife());
+ echo '</td></tr></table>';
}
echo '</td>';
}
diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php
index abbdf748da..24864a42c8 100644
--- a/modules_v3/googlemap/module.php
+++ b/modules_v3/googlemap/module.php
@@ -1254,7 +1254,7 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu
// end of add image
$dataleft = WT_Filter::escapeJs($image . $event . ' — ' . $name);
- $datamid = WT_Filter::escapeJs(' <span><a href="' . $person->getHtmlUrl() . '"></a></span>');
+ $datamid = WT_Filter::escapeJs(' <span><a href="' . $person->getHtmlUrl() . '">('.WT_I18N::translate('View person').')</a></span>');
$dataright = WT_Filter::escapeJs('<br><strong>'. WT_I18N::translate('Birth:') . '&nbsp;</strong>' . $person->getBirthDate()->Display(false) . ' — ' . $person->getBirthPlace());
$latlongval[$i] = get_lati_long_placelocation($person->getBirthPlace());