diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-09-04 21:26:42 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-09-04 21:26:42 +0100 |
| commit | 870b663fa3f7d3552f29fec0a1f1dcf1002a2547 (patch) | |
| tree | 3613ddfc6ad565e9488e462dfbd1a2f514117bdd /app/Http/RequestHandlers/RepositoryPage.php | |
| parent | a4f494bbb32d867a93d906b8fdd36eaac8e72a53 (diff) | |
| download | webtrees-870b663fa3f7d3552f29fec0a1f1dcf1002a2547.tar.gz webtrees-870b663fa3f7d3552f29fec0a1f1dcf1002a2547.tar.bz2 webtrees-870b663fa3f7d3552f29fec0a1f1dcf1002a2547.zip | |
Remove calls to deprecated function
Diffstat (limited to 'app/Http/RequestHandlers/RepositoryPage.php')
| -rw-r--r-- | app/Http/RequestHandlers/RepositoryPage.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/Http/RequestHandlers/RepositoryPage.php b/app/Http/RequestHandlers/RepositoryPage.php index f5c5de6f6f..b031966776 100644 --- a/app/Http/RequestHandlers/RepositoryPage.php +++ b/app/Http/RequestHandlers/RepositoryPage.php @@ -48,15 +48,15 @@ class RepositoryPage implements RequestHandlerInterface // Show the repository's facts in this order: private const FACT_ORDER = [ - 1 => 'NAME', - 'ADDR', - 'NOTE', - 'WWW', - 'REFN', - 'RIN', - '_UID', - 'CHAN', - 'RESN', + 1 => 'REPO:NAME', + 'REPO:ADDR', + 'REPO:NOTE', + 'REPO:WWW', + 'REPO:REFN', + 'REPO:RIN', + 'REPO:_UID', + 'REPO:CHAN', + 'REPO:RESN', ]; /** @var ClipboardService */ @@ -114,8 +114,8 @@ class RepositoryPage implements RequestHandlerInterface { return $record->facts() ->sort(static function (Fact $x, Fact $y): int { - $sort_x = array_search($x->getTag(), self::FACT_ORDER, true) ?: PHP_INT_MAX; - $sort_y = array_search($y->getTag(), self::FACT_ORDER, true) ?: PHP_INT_MAX; + $sort_x = array_search($x->tag(), self::FACT_ORDER, true) ?: PHP_INT_MAX; + $sort_y = array_search($y->tag(), self::FACT_ORDER, true) ?: PHP_INT_MAX; return $sort_x <=> $sort_y; }); |
