diff options
Diffstat (limited to 'includes/classes')
| -rw-r--r-- | includes/classes/class_stats.php | 8 | ||||
| -rw-r--r-- | includes/classes/class_treenav.php | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/includes/classes/class_stats.php b/includes/classes/class_stats.php index ea9acd57e1..afe56b181b 100644 --- a/includes/classes/class_stats.php +++ b/includes/classes/class_stats.php @@ -2876,7 +2876,7 @@ class stats { $return = "<a href=\"".$child2->getHtmlUrl()."\">".PrintReady($child2->getFullName())."</a> "; $return .= i18n::translate('and')." "; $return .= "<a href=\"".$child1->getHtmlUrl()."\">".PrintReady($child1->getFullName())."</a>"; - $return .= " <a href=\"family.php?famid=".$fam['family']."\">[".i18n::translate('View Family')."]</a>\n"; + $return .= " <a href=\"".$family->getHtmlUrl()."\">[".i18n::translate('View Family')."]</a>\n"; } else { $return = i18n::translate('This information is private and cannot be shown.'); } @@ -2902,7 +2902,7 @@ class stats { $return .= i18n::translate('and')." "; $return .= "<a href=\"".$child1->getHtmlUrl()."\">".PrintReady($child1->getFullName())."</a>"; $return .= " [".$age."]"; - $return .= " <a href=\"family.php?famid=".$fam['family']."\">[".i18n::translate('View Family')."]</a>"; + $return .= " <a href=\"".$family->getHtmlUrl()."\">[".i18n::translate('View Family')."]</a>"; $return .= "\t</li>\n"; $top10[] = $return; $dist[] = $fam['family']; @@ -2913,7 +2913,7 @@ class stats { $return .= i18n::translate('and')." "; $return .= "<a href=\"".$child1->getHtmlUrl()."\">".PrintReady($child1->getFullName())."</a>"; $return .= " [".$age."]"; - $return .= " <a href=\"family.php?famid=".$fam['family']."\">[".i18n::translate('View Family')."]</a>"; + $return .= " <a href=\"".$family->getHtmlUrl()."\">[".i18n::translate('View Family')."]</a>"; $return .= "\t</li>\n"; $top10[] = $return; } @@ -2923,7 +2923,7 @@ class stats { $return .= "<br />".i18n::translate('and')."<br />"; $return .= $child1->format_list('span', false, $child1->getFullName()); //$return .= "<br />[".$age."]"; - $return .= "<br /><a href=\"family.php?famid=".$fam['family']."\">[".i18n::translate('View Family')."]</a>\n"; + $return .= "<br /><a href=\"".$family->getHtmlUrl()."\">[".i18n::translate('View Family')."]</a>\n"; return $return; } } diff --git a/includes/classes/class_treenav.php b/includes/classes/class_treenav.php index 4e2363ae25..75106f837a 100644 --- a/includes/classes/class_treenav.php +++ b/includes/classes/class_treenav.php @@ -354,7 +354,7 @@ class TreeNav { echo '<b>', abbreviate_fact('BIRT'), '</b> ', $spouse->getBirthDate()->Display(), ' ', PrintReady($spouse->getBirthPlace()), '<br />'; echo '<b>', abbreviate_fact('MARR'), '</b> ', $family->getMarriageDate()->Display(), ' ', $family->getMarriagePlace(); ?> - <a href="family.php?famid=<?php echo $family->getXref(); ?>" onclick="if (!<?php echo $this->name; ?>.collapseBox) return false;"><img id="d_<?php echo $family->getXref(); ?>" alt="<?php echo $family->getXref(); ?>" class="draggable" src="<?php echo WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['button_family']; ?>" border="0" /></a><br /> + <a href="<?php echo $family->getHtmlUrl(); ?>" onclick="if (!<?php echo $this->name; ?>.collapseBox) return false;"><img id="d_<?php echo $family->getXref(); ?>" alt="<?php echo $family->getXref(); ?>" class="draggable" src="<?php echo WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['button_family']; ?>" border="0" /></a><br /> <?php if ($spouse->isDead()) { echo '<b>', abbreviate_fact('DEAT'), '</b> ', $spouse->getDeathDate()->Display(), ' ', PrintReady($spouse->getDeathPlace()), '<br />'; |
