From 3d7a8a4ca809135634f38216b734b15acff479f7 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 5 Jun 2015 20:16:40 +0100 Subject: Refactor includes/functions into classes --- app/Controller/FamilyBookController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/Controller/FamilyBookController.php') diff --git a/app/Controller/FamilyBookController.php b/app/Controller/FamilyBookController.php index ad2dd42f72..2aac9d6ef9 100644 --- a/app/Controller/FamilyBookController.php +++ b/app/Controller/FamilyBookController.php @@ -17,6 +17,7 @@ namespace Fisharebest\Webtrees\Controller; */ use Fisharebest\Webtrees\Filter; +use Fisharebest\Webtrees\Functions\FunctionsPrint; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Theme; @@ -152,7 +153,7 @@ class FamilyBookController extends ChartController { } echo ''; if ($family->getHusband()) { echo '', ''; if ($family->getWife()) { echo '
'; if ($person) { - print_pedigree_person($person, $this->showFull()); + FunctionsPrint::printPedigreePerson($person, $this->showFull()); echo '', ''; } else { @@ -166,7 +167,7 @@ class FamilyBookController extends ChartController { foreach ($person->getSpouseFamilies() as $family) { $spouse = $family->getSpouse($person); echo '
'; - print_pedigree_person($spouse, $this->showFull()); + FunctionsPrint::printPedigreePerson($spouse, $this->showFull()); $numkids += 0.95; echo ''; } @@ -259,7 +260,7 @@ class FamilyBookController extends ChartController { ''; $lh = $savlh; // restore original line height //-- print the father box - print_pedigree_person($family->getHusband(), $this->showFull()); + FunctionsPrint::printPedigreePerson($family->getHusband(), $this->showFull()); echo ''; @@ -282,7 +283,7 @@ class FamilyBookController extends ChartController { ''; //-- print the mother box - print_pedigree_person($family->getWife(), $this->showFull()); + FunctionsPrint::printPedigreePerson($family->getWife(), $this->showFull()); echo ''; -- cgit v1.3