diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-05-12 00:38:22 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-05-12 14:19:35 +0100 |
| commit | a091ac74647eab281b25090b737835eeea14ae10 (patch) | |
| tree | 5e968be23c54e70f67812b1cca78c7e1e17aa95d /app/CommonMark/XrefParser.php | |
| parent | bb03c9f048b83092098d5e46c2ab323ae7e2b314 (diff) | |
| download | webtrees-a091ac74647eab281b25090b737835eeea14ae10.tar.gz webtrees-a091ac74647eab281b25090b737835eeea14ae10.tar.bz2 webtrees-a091ac74647eab281b25090b737835eeea14ae10.zip | |
Update code to use new Factory objects
Diffstat (limited to 'app/CommonMark/XrefParser.php')
| -rw-r--r-- | app/CommonMark/XrefParser.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/CommonMark/XrefParser.php b/app/CommonMark/XrefParser.php index 17f3e12684..0f5614a1ed 100644 --- a/app/CommonMark/XrefParser.php +++ b/app/CommonMark/XrefParser.php @@ -2,7 +2,7 @@ /** * webtrees: online genealogy - * Copyright (C) 2019 webtrees development team + * Copyright (C) 2020 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -19,6 +19,7 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\CommonMark; +use Fisharebest\Webtrees\Factory; use Fisharebest\Webtrees\Gedcom; use Fisharebest\Webtrees\GedcomRecord; use Fisharebest\Webtrees\Tree; @@ -73,7 +74,7 @@ class XrefParser implements InlineParserInterface if (is_string($xref)) { $xref = trim($xref, '@'); - $record = GedcomRecord::getInstance($xref, $this->tree); + $record = Factory::gedcomRecord()->make($xref, $this->tree); if ($record instanceof GedcomRecord) { $context->getContainer()->appendChild(new XrefNode($record)); |
