summaryrefslogtreecommitdiff
path: root/famlist.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-03-08 17:09:41 +0000
committerGreg Roach <fisharebest@gmail.com>2015-03-09 00:08:53 +0000
commit24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52 (patch)
tree0059c30afd4b78da23f28067165a7b17415924d8 /famlist.php
parent3763c3f2dff6a4360b7b8810b6250e372dded805 (diff)
downloadwebtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.tar.gz
webtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.tar.bz2
webtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.zip
Use Tree object instead of ID/name
Diffstat (limited to 'famlist.php')
-rw-r--r--famlist.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/famlist.php b/famlist.php
index fdce15aa76..a047707ce8 100644
--- a/famlist.php
+++ b/famlist.php
@@ -128,7 +128,7 @@ echo '<h2 class="center">', I18N::translate('Families'), '</h2>';
// Print a selection list of initial letters
$list = array();
-foreach (QueryName::surnameAlpha($show_marnm === 'yes', true, WT_GED_ID) as $letter => $count) {
+foreach (QueryName::surnameAlpha($show_marnm === 'yes', true, $WT_TREE->getTreeId()) as $letter => $count) {
switch ($letter) {
case '@':
$html = $UNKNOWN_NN;
@@ -184,7 +184,7 @@ if (!Auth::isSearchEngine()) {
}
if ($show === 'indi' || $show === 'surn') {
- $surns = QueryName::surnames($surname, $alpha, $show_marnm === 'yes', true, WT_GED_ID);
+ $surns = QueryName::surnames($surname, $alpha, $show_marnm === 'yes', true, $WT_TREE->getTreeId());
if ($show === 'surn') {
// Show the surname list
switch ($WT_TREE->getPreference('SURNAME_LIST_STYLE')) {
@@ -212,7 +212,7 @@ if ($show === 'indi' || $show === 'surn') {
$falpha = '';
$show_all_firstnames = 'no';
} else {
- $givn_initials = QueryName::givenAlpha($surname, $alpha, $show_marnm === 'yes', true, WT_GED_ID);
+ $givn_initials = QueryName::givenAlpha($surname, $alpha, $show_marnm === 'yes', true, $WT_TREE->getTreeId());
// Break long lists by initial letter of given name
if ($surname || $show_all === 'yes') {
// Don't show the list until we have some filter criteria
@@ -252,7 +252,7 @@ if ($show === 'indi' || $show === 'surn') {
}
}
if ($show === 'indi') {
- echo format_fam_table(QueryName::families($surname, $alpha, $falpha, $show_marnm === 'yes', WT_GED_ID));
+ echo format_fam_table(QueryName::families($surname, $alpha, $falpha, $show_marnm === 'yes', $WT_TREE->getTreeId()));
}
}
}