summaryrefslogtreecommitdiff
path: root/timeline.php
diff options
context:
space:
mode:
Diffstat (limited to 'timeline.php')
-rw-r--r--timeline.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/timeline.php b/timeline.php
index 70ea012fa5..cd03e41ee1 100644
--- a/timeline.php
+++ b/timeline.php
@@ -17,6 +17,8 @@ namespace Fisharebest\Webtrees;
*/
use Fisharebest\Webtrees\Controller\TimelineController;
+use Fisharebest\Webtrees\Functions\Functions;
+use Fisharebest\Webtrees\Functions\FunctionsPrint;
$basexoffset = 0;
$baseyoffset = 0;
@@ -293,7 +295,7 @@ document.onmouseup = function () {
<td class="list_value" style="padding: 5px;" valign="top">
<?php echo I18N::translate('Add another individual to the chart'), '<br>'; ?>
<input class="pedigree_form" data-autocomplete-type="INDI" type="text" size="5" id="newpid" name="newpid">
- <?php echo print_findindi_link('newpid'); ?>
+ <?php echo FunctionsPrint::printFindIndividualLink('newpid'); ?>
<br>
<br>
@@ -341,7 +343,7 @@ if (count($controller->people) > 0) {
echo "<div id=\"scale{$controller->topyear}\" style=\"position:absolute; " . (I18N::direction() === 'ltr' ? "left: $basexoffset" : "right: $basexoffset") . "px; top:" . ($baseyoffset + (($controller->topyear - $controller->baseyear) * $controller->scale)) . "px; font-size: 7pt; text-align:" . (I18N::direction() === 'ltr' ? 'left' : 'right') . ";\">";
echo $controller->topyear . '—';
echo '</div>';
- sort_facts($controller->indifacts);
+ Functions::sortFacts($controller->indifacts);
$factcount = 0;
foreach ($controller->indifacts as $fact) {
$controller->printTimeFact($fact);