summaryrefslogtreecommitdiff
path: root/includes/classes
diff options
context:
space:
mode:
authorLarry Meaney <larry_meaney@iname.com>2010-11-27 23:59:16 +0000
committerLarry Meaney <larry_meaney@iname.com>2010-11-27 23:59:16 +0000
commit106c30b48bde7a34b7b9f6ca56bb6ba40963284e (patch)
tree75d2b8702f88919930c52ba2a01befbae1475847 /includes/classes
parent6e1532cced3d078e64d6d856dc909b368765d7e6 (diff)
downloadwebtrees-106c30b48bde7a34b7b9f6ca56bb6ba40963284e.tar.gz
webtrees-106c30b48bde7a34b7b9f6ca56bb6ba40963284e.tar.bz2
webtrees-106c30b48bde7a34b7b9f6ca56bb6ba40963284e.zip
use $family->getHtmlUrl() instead of manually generating links to family.php
Diffstat (limited to 'includes/classes')
-rw-r--r--includes/classes/class_stats.php8
-rw-r--r--includes/classes/class_treenav.php2
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 />';