@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Database; |
| 20 | 20 | use Fisharebest\Webtrees\Filter; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | use Fisharebest\Webtrees\Theme; |
| 25 | 24 | |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Database; |
| 20 | 20 | use Fisharebest\Webtrees\Filter; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | use Fisharebest\Webtrees\Theme; |
| 25 | 24 | |
@@ -23,8 +23,6 @@ |
||
| 23 | 23 | global $WT_TREE; |
| 24 | 24 | |
| 25 | 25 | use Fisharebest\Webtrees\Controller\SimpleController; |
| 26 | -use Fisharebest\Webtrees\Functions\FunctionsDb; |
|
| 27 | -use Fisharebest\Webtrees\Query\QueryMedia; |
|
| 28 | 26 | |
| 29 | 27 | define('WT_SCRIPT_NAME', 'find.php'); |
| 30 | 28 | require './includes/session.php'; |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Database; |
| 20 | 20 | use Fisharebest\Webtrees\Filter; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | use Fisharebest\Webtrees\Theme; |
| 25 | 24 | |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use Fisharebest\Webtrees\Database; |
| 20 | 20 | use Fisharebest\Webtrees\Filter; |
| 21 | 21 | use Fisharebest\Webtrees\Functions\FunctionsDate; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 23 | 22 | use Fisharebest\Webtrees\I18N; |
| 24 | 23 | use Fisharebest\Webtrees\Theme; |
| 25 | 24 | |
@@ -22,8 +22,6 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | global $WT_TREE; |
| 24 | 24 | |
| 25 | -use Fisharebest\Webtrees\Functions\FunctionsPrint; |
|
| 26 | - |
|
| 27 | 25 | $more_links = Filter::get('more_links'); |
| 28 | 26 | $exist_links = Filter::get('exist_links'); |
| 29 | 27 | $gid = Filter::get('gid', WT_REGEX_XREF); |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | } |
| 166 | 166 | if ($this->record->canEdit() && !$event->isPendingDeletion()) { |
| 167 | 167 | 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() . "', '" . $event->getFactId() . "');\" title=\"" . I18N::translate('Delete this name') . '"><span class="link_text">' . I18N::translate('Delete this name') . '</span></a></div>'; |
| 168 | - echo '<div class="editlink noprint"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $event->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>'; |
|
| 168 | + echo '<div class="editlink noprint"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $event->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>'; |
|
| 169 | 169 | } |
| 170 | 170 | echo '</dd>'; |
| 171 | 171 | echo '</dl>'; |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | public static function createEditLinks($gedrec, GedcomRecord $record) { |
| 149 | 149 | return preg_replace( |
| 150 | 150 | "/@([^#@\n]+)@/m", |
| 151 | - '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() .'">@\\1@</a>', |
|
| 151 | + '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() . '">@\\1@</a>', |
|
| 152 | 152 | $gedrec |
| 153 | 153 | ); |
| 154 | 154 | } |
@@ -1089,7 +1089,7 @@ discard block |
||
| 1089 | 1089 | "SELECT CONCAT(l_to, '@', l_file), COUNT(*) FROM `##sources` JOIN `##link` ON l_from = s_id AND l_file = s_file AND l_type = 'NOTE' GROUP BY l_to, l_file" |
| 1090 | 1090 | )->fetchAssoc(); |
| 1091 | 1091 | |
| 1092 | - $html = ''; |
|
| 1092 | + $html = ''; |
|
| 1093 | 1093 | $html .= '<table ' . Datatables::noteTableAttributes() . '><thead><tr>'; |
| 1094 | 1094 | $html .= '<th>' . I18N::translate('Title') . '</th>'; |
| 1095 | 1095 | $html .= '<th>' . I18N::translate('Individuals') . '</th>'; |
@@ -1155,7 +1155,7 @@ discard block |
||
| 1155 | 1155 | )->fetchAssoc(); |
| 1156 | 1156 | |
| 1157 | 1157 | $html = ''; |
| 1158 | - $html .= '<table ' . Datatables::repositoryTableAttributes() . '"><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1158 | + $html .= '<table ' . Datatables::repositoryTableAttributes() . '"><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
| 1159 | 1159 | $html .= '<th>' . I18N::translate('Sources') . '</th>'; |
| 1160 | 1160 | $html .= '<th>' . I18N::translate('Last change') . '</th>'; |
| 1161 | 1161 | $html .= '<th>' . I18N::translate('Delete') . '</th>'; |
@@ -1585,7 +1585,7 @@ discard block |
||
| 1585 | 1585 | if ($endjd === $startjd) { |
| 1586 | 1586 | $html .= I18N::translate('No events exist for tomorrow.'); |
| 1587 | 1587 | } else { |
| 1588 | - $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
| 1588 | + $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
| 1589 | 1589 | } |
| 1590 | 1590 | } else { |
| 1591 | 1591 | if ($endjd === $startjd) { |