diff options
Diffstat (limited to 'individual.php')
| -rw-r--r-- | individual.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/individual.php b/individual.php index 473b1149b2..6f1ae5735c 100644 --- a/individual.php +++ b/individual.php @@ -24,6 +24,8 @@ namespace Fisharebest\Webtrees; global $WT_TREE; use Fisharebest\Webtrees\Controller\IndividualController; +use Fisharebest\Webtrees\Functions\FunctionsDate; +use Fisharebest\Webtrees\Functions\FunctionsPrint; define('WT_SCRIPT_NAME', 'individual.php'); require './includes/session.php'; @@ -51,13 +53,13 @@ if ($controller->record && $controller->record->canShow()) { '<a href="#" onclick="accept_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" onclick="reject_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>' ), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } elseif (Auth::isEditor($controller->record->getTree())) { echo '<p class="ui-state-highlight">', I18N::translate('This individual has been deleted. The deletion will need to be reviewed by a moderator.'), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } } elseif ($controller->record->isPendingAddtion()) { @@ -69,13 +71,13 @@ if ($controller->record && $controller->record->canShow()) { '<a href="#" onclick="accept_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" onclick="reject_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } elseif (Auth::isEditor($controller->record->getTree())) { echo '<p class="ui-state-highlight">', I18N::translate('This individual has been edited. The changes need to be reviewed by a moderator.'), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } } @@ -179,10 +181,10 @@ if ($controller->record->canShow()) { echo '<span class="header_age">'; if ($bdate->isOK() && !$controller->record->isDead()) { // If living display age - echo GedcomTag::getLabelValue('AGE', get_age_at_event(Date::getAgeGedcom($bdate), true), $controller->record, 'span'); + echo GedcomTag::getLabelValue('AGE', FunctionsDate::getAgeAtEvent(Date::getAgeGedcom($bdate), true), $controller->record, 'span'); } elseif ($bdate->isOK() && $ddate->isOK()) { // If dead, show age at death - echo GedcomTag::getLabelValue('AGE', get_age_at_event(Date::getAgeGedcom($bdate, $ddate), false), $controller->record, 'span'); + echo GedcomTag::getLabelValue('AGE', FunctionsDate::getAgeAtEvent(Date::getAgeGedcom($bdate, $ddate), false), $controller->record, 'span'); } echo '</span>'; // Display summary birth/death info. |
