diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-05 14:25:38 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-05 14:25:38 +0000 |
| commit | 9184390d6d1424fcb32e2edc70d4feced52fa3f4 (patch) | |
| tree | 60ad769580e96d229ef8b024b233fcfbd186fdd0 /modules_v3/tree | |
| parent | 9b21eb42558a27852c3f93b872a7baa62b51040a (diff) | |
| download | webtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.tar.gz webtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.tar.bz2 webtrees-9184390d6d1424fcb32e2edc70d4feced52fa3f4.zip | |
Major MVC refactoring. Every page now has a controller.
Diffstat (limited to 'modules_v3/tree')
| -rw-r--r-- | modules_v3/tree/module.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules_v3/tree/module.php b/modules_v3/tree/module.php index a1db93c254..546d36a5ca 100644 --- a/modules_v3/tree/module.php +++ b/modules_v3/tree/module.php @@ -113,7 +113,11 @@ class tree_WT_Module extends WT_Module implements WT_Module_Tab { $tv = new TreeView('tv'); ob_start(); $person=WT_Person::getInstance($rootid); - print_header(WT_I18N::translate('Interactive tree of %s', $person->getFullName())); + + $controller=new WT_Controller_Base(); + $controller->setPageTitle(WT_I18N::translate('Interactive tree of %s', $person->getFullName())); + $controller->pageHeader(); + if (WT_USE_LIGHTBOX) { require WT_MODULES_DIR.'lightbox/functions/lb_call_js.php'; } @@ -128,7 +132,6 @@ class tree_WT_Module extends WT_Module implements WT_Module_Tab { $header = str_replace('</head>', $this->js.$this->css.'</head>', $header); echo $header; echo $tv->drawViewport($rootid, 4, $this->style); - print_footer(); break; case 'getDetails': |
