diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-28 16:33:48 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-28 16:33:48 +0000 |
| commit | ec8c5e19cb57c020dfed24d698b598f0439a8f95 (patch) | |
| tree | aa19e2d6a7476017d829351dc2ebe2dc6d4cc96c /app/Controller/LifespanController.php | |
| parent | b7552a145d1aefe3f26a8a56a5426b99ba90aad5 (diff) | |
| download | webtrees-ec8c5e19cb57c020dfed24d698b598f0439a8f95.tar.gz webtrees-ec8c5e19cb57c020dfed24d698b598f0439a8f95.tar.bz2 webtrees-ec8c5e19cb57c020dfed24d698b598f0439a8f95.zip | |
Fix #457 - adding individuals via place in lifespan chart
Diffstat (limited to 'app/Controller/LifespanController.php')
| -rw-r--r-- | app/Controller/LifespanController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/LifespanController.php b/app/Controller/LifespanController.php index ad5b2edbb5..6af7189101 100644 --- a/app/Controller/LifespanController.php +++ b/app/Controller/LifespanController.php @@ -64,7 +64,7 @@ class LifespanController extends PageController { * Startup activity */ public function __construct() { - global $WT_SESSION; + global $WT_SESSION, $WT_TREE; parent::__construct(); $this->setPageTitle(I18N::translate('Lifespans')); @@ -98,7 +98,7 @@ class LifespanController extends PageController { $this->pids = $pids; } elseif ($place) { // All records found in a place - $wt_place = new Place($place, $new_person->getTree()); + $wt_place = new Place($place, $WT_TREE); $this->pids = Database::prepare( "SELECT DISTINCT pl_gid FROM `##placelinks` WHERE pl_p_id = ? AND pl_file = ?" )->execute(array($wt_place->getPlaceId(), WT_GED_ID))->fetchOneColumn(); |
