diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-05 10:04:50 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-05 10:04:50 +0000 |
| commit | c2214e39282770e3a1780c1d8564999a34389f8a (patch) | |
| tree | 40e4d86ebc30788424387d7c6b45852cd9938578 /library/WT/Controller/Pedigree.php | |
| parent | 07fd93c247cf07ca851b7bbdcb002c6a279661a2 (diff) | |
| download | webtrees-c2214e39282770e3a1780c1d8564999a34389f8a.tar.gz webtrees-c2214e39282770e3a1780c1d8564999a34389f8a.tar.bz2 webtrees-c2214e39282770e3a1780c1d8564999a34389f8a.zip | |
More refactoring - separation into Model/View/Controller
Diffstat (limited to 'library/WT/Controller/Pedigree.php')
| -rw-r--r-- | library/WT/Controller/Pedigree.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/WT/Controller/Pedigree.php b/library/WT/Controller/Pedigree.php index 9a47c3e2b0..46fc1fc9e2 100644 --- a/library/WT/Controller/Pedigree.php +++ b/library/WT/Controller/Pedigree.php @@ -56,6 +56,9 @@ class WT_Controller_Pedigree extends WT_Controller_Chart { global $bwidth, $bheight, $baseyoffset, $basexoffset, $byspacing, $bxspacing; global $TEXT_DIRECTION, $BROWSER_TYPE, $show_full, $talloffset; + parent::__construct(); + $this->setPageTitle(/* I18N: %s is a person's name */ WT_I18N::translate('Pedigree tree of %s', $this->name)); + $this->log2 = log(2); $this->rootid =safe_GET_xref('rootid'); @@ -245,11 +248,6 @@ class WT_Controller_Pedigree extends WT_Controller_Chart { $this->adjust_subtree(0, $ydiff); } - // What should this page show in the browser's title bar? - public function getPageTitle() { - return /* I18N: %s is a person's name */ WT_I18N::translate('Pedigree tree of %s', $this->name); - } - function getPersonName() { if (is_null($this->rootPerson)) { return WT_I18N::translate('unknown'); |
