summaryrefslogtreecommitdiff
path: root/app/Individual.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-01-27 22:58:40 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-01-27 23:17:30 +0000
commit392561bb99af217275768e5e324d4700af01ce3e (patch)
treec5b27fb099155c3be24d6c50edefd26a0f60dadf /app/Individual.php
parentead61980531901585812230435477067158ac121 (diff)
downloadwebtrees-392561bb99af217275768e5e324d4700af01ce3e.tar.gz
webtrees-392561bb99af217275768e5e324d4700af01ce3e.tar.bz2
webtrees-392561bb99af217275768e5e324d4700af01ce3e.zip
Refactor class Place
Diffstat (limited to 'app/Individual.php')
-rw-r--r--app/Individual.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Individual.php b/app/Individual.php
index 2db05374e0..39a3281419 100644
--- a/app/Individual.php
+++ b/app/Individual.php
@@ -554,8 +554,8 @@ class Individual extends GedcomRecord
public function getLifeSpan(): string
{
// Just the first part of the place name
- $birth_place = strip_tags($this->getBirthPlace()->getShortName());
- $death_place = strip_tags($this->getDeathPlace()->getShortName());
+ $birth_place = strip_tags($this->getBirthPlace()->shortName());
+ $death_place = strip_tags($this->getDeathPlace()->shortName());
// Remove markup from dates
$birth_date = strip_tags($this->getBirthDate()->display());
$death_date = strip_tags($this->getDeathDate()->display());