@@ -127,7 +127,6 @@ |
||
127 | 127 | /** |
128 | 128 | * Format a name record |
129 | 129 | * |
130 | - * @param int $primary |
|
131 | 130 | * @param Fact $name_fact |
132 | 131 | * |
133 | 132 | * @return string |
@@ -17,11 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Auth; |
19 | 19 | use Fisharebest\Webtrees\Database; |
20 | -use Fisharebest\Webtrees\Date; |
|
21 | 20 | use Fisharebest\Webtrees\Fact; |
22 | 21 | use Fisharebest\Webtrees\Family; |
23 | 22 | use Fisharebest\Webtrees\Filter; |
24 | -use Fisharebest\Webtrees\Functions\FunctionsDate; |
|
25 | 23 | use Fisharebest\Webtrees\Functions\FunctionsPrint; |
26 | 24 | use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; |
27 | 25 | use Fisharebest\Webtrees\GedcomCode\GedcomCodeName; |
@@ -30,7 +28,6 @@ discard block |
||
30 | 28 | use Fisharebest\Webtrees\Individual; |
31 | 29 | use Fisharebest\Webtrees\Menu; |
32 | 30 | use Fisharebest\Webtrees\Module; |
33 | -use Fisharebest\Webtrees\User; |
|
34 | 31 | |
35 | 32 | /** |
36 | 33 | * Controller for the individual page |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | if ($n === 0) { |
152 | 152 | $content_class = 'collapse show'; |
153 | - $aria = 'true'; |
|
153 | + $aria = 'true'; |
|
154 | 154 | |
155 | 155 | // Display gender icon |
156 | 156 | foreach ($individual->getFacts('SEX') as $sex_fact) { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | echo '<dd class="field">', $dummy->getFullName(); |
170 | 170 | if ($this->record->canEdit() && !$name_fact->isPendingDeletion()) { |
171 | 171 | echo "<div class=\"deletelink noprint\"><a class=\"deleteicon\" href=\"#\" onclick=\"return delete_fact('" . I18N::translate('Are you sure you want to delete this fact?') . "', '" . $this->record->getXref() . "', '" . $name_fact->getFactId() . "');\" title=\"" . I18N::translate('Delete this name') . '"><span class="link_text">' . I18N::translate('Delete this name') . '</span></a></div>'; |
172 | - echo '<div class="editlink noprint"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $name_fact->getFactId() . '&ged=' . $this->record->getTree()->getNameHtml() . '" class="editicon" title="' . I18N::translate('Edit the name') . '"><span class="link_text">' . I18N::translate('Edit the name') . '</span></a></div>'; |
|
172 | + echo '<div class="editlink noprint"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $name_fact->getFactId() . '&ged=' . $this->record->getTree()->getNameHtml() . '" class="editicon" title="' . I18N::translate('Edit the name') . '"><span class="link_text">' . I18N::translate('Edit the name') . '</span></a></div>'; |
|
173 | 173 | } |
174 | 174 | echo '</dd>'; |
175 | 175 | $ct = preg_match_all('/\n2 (\w+) (.*)/', $name_fact->getGedcom(), $nmatch, PREG_SET_ORDER); |
@@ -89,7 +89,7 @@ |
||
89 | 89 | if (Auth::isAdmin()) { |
90 | 90 | $user = User::findByGenealogyRecord($controller->record); |
91 | 91 | if ($user) { |
92 | - $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
92 | + $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; |
|
93 | 93 | }; |
94 | 94 | } |
95 | 95 |