diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-01-05 11:46:40 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-01-05 11:46:40 +0000 |
| commit | e3a945660ac407a3f5359eac8d5a4679f1fcfad2 (patch) | |
| tree | 0e9292099ea35f54641ec0e5466785ba348e5eca /familybook.php | |
| parent | b2d1b28289d637da05adc5abc030aedb27163b98 (diff) | |
| download | webtrees-e3a945660ac407a3f5359eac8d5a4679f1fcfad2.tar.gz webtrees-e3a945660ac407a3f5359eac8d5a4679f1fcfad2.tar.bz2 webtrees-e3a945660ac407a3f5359eac8d5a4679f1fcfad2.zip | |
Minor tidy up. Use Objects instead of XREFs and raw gedcom
Diffstat (limited to 'familybook.php')
| -rw-r--r-- | familybook.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/familybook.php b/familybook.php index cb3be27b3b..7da514afae 100644 --- a/familybook.php +++ b/familybook.php @@ -86,7 +86,7 @@ function print_descendency($person, $count) { if ($i==0) $firstkids = $kids; $numkids += $kids; } else { - print_pedigree_person($child->getXref()); + print_pedigree_person($child); $numkids++; } echo "</td>"; @@ -130,12 +130,12 @@ function print_descendency($person, $count) { echo '<br /><div style="height:', $bheight, 'px;width:', $bwidth, 'px;"><br /></div>'; } } - print_pedigree_person($pid); + print_pedigree_person($person); if ($show_spouse) { foreach ($sfamilies as $family) { echo '<br/>', $family->getMarriage()->print_simple_fact(); - print_pedigree_person($family->getSpouseId($pid)); + print_pedigree_person($family->getSpouse($person)); } } @@ -157,7 +157,7 @@ function print_person_pedigree($pid, $count) { echo "<td rowspan=\"2\"><img src=\"".$WT_IMAGES["hline"]."\" width=\"7\" height=\"3\" alt=\"\" /></td>"; } echo "<td rowspan=\"2\">"; - print_pedigree_person($family->getHusbId()); + print_pedigree_person($family->getHusband()); echo "</td>"; echo "<td rowspan=\"2\">"; print_person_pedigree($family->getHusbId(), $count+1); @@ -172,7 +172,7 @@ function print_person_pedigree($pid, $count) { echo "<td rowspan=\"2\"><img src=\"".$WT_IMAGES["hline"]."\" width=\"7\" height=\"3\" alt=\"\" /></td>"; } echo "<td rowspan=\"2\">"; - print_pedigree_person($family->getWifeId()); + print_pedigree_person($family->getWife()); echo "</td>"; echo "<td rowspan=\"2\">"; print_person_pedigree($family->getWifeId(), $count+1); |
