@@ -85,8 +85,7 @@ |
||
85 | 85 | // Create the underlying PDO object |
86 | 86 | self::$pdo = new PDO( |
87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
90 | 89 | ), |
91 | 90 | $DBUSER, $DBPASS, |
92 | 91 | [ |
@@ -381,7 +381,8 @@ discard block |
||
381 | 381 | <a href="<?= $individual->getHtmlUrl() ?>#tab-stories"> |
382 | 382 | <?= $individual->getFullName() ?> |
383 | 383 | </a> |
384 | - <?php else: ?> |
|
384 | + <?php else { |
|
385 | + : ?> |
|
385 | 386 | <?= $story->xref ?> |
386 | 387 | <?php endif ?> |
387 | 388 | </td> |
@@ -410,6 +411,7 @@ discard block |
||
410 | 411 | */ |
411 | 412 | private function showList() { |
412 | 413 | global $controller, $WT_TREE; |
414 | +} |
|
413 | 415 | |
414 | 416 | $controller = new PageController; |
415 | 417 | $controller |
@@ -84,7 +84,8 @@ discard block |
||
84 | 84 | <?php if ($ancestors_only === '1'): ?> |
85 | 85 | <input type="hidden" name="ancestors" value="1"> |
86 | 86 | <?= I18N::translate('Find relationships via ancestors') ?> |
87 | - <?php else: ?> |
|
87 | + <?php else { |
|
88 | + : ?> |
|
88 | 89 | <?= Bootstrap4::radioButtons('ancestors', ['0' => I18N::translate('Find any relationship'), '1' => I18N::translate('Find relationships via ancestors')], $ancestors, false) ?> |
89 | 90 | <?php endif ?> |
90 | 91 | </div> |
@@ -114,6 +115,7 @@ discard block |
||
114 | 115 | if ($person1 && $person2) { |
115 | 116 | if (I18N::direction() === 'ltr') { |
116 | 117 | $horizontal_arrow = '<br><i class="icon-rarrow"></i>'; |
118 | +} |
|
117 | 119 | $diagonal1 = Theme::theme()->parameter('image-dline'); |
118 | 120 | $diagonal2 = Theme::theme()->parameter('image-dline2'); |
119 | 121 | } else { |
@@ -16,8 +16,8 @@ |
||
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Exception; |
19 | -use Swift_Mailer; |
|
20 | 19 | use Swift_MailTransport; |
20 | +use Swift_Mailer; |
|
21 | 21 | use Swift_Message; |
22 | 22 | use Swift_NullTransport; |
23 | 23 | use Swift_Preferences; |
@@ -106,7 +106,7 @@ |
||
106 | 106 | if (!empty($menu->getSubmenus())) { |
107 | 107 | // Insert a dummy menu / label into the submenu |
108 | 108 | $submenus = $menu->getSubmenus(); |
109 | - array_unshift($submenus, new Menu($menu->getLabel(), null, null, [ 'onclick' => 'return false;'])); |
|
109 | + array_unshift($submenus, new Menu($menu->getLabel(), null, null, ['onclick' => 'return false;'])); |
|
110 | 110 | $menu->setSubmenus($submenus); |
111 | 111 | } |
112 | 112 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | // edit_fam / reorder_children |
87 | 87 | if ($this->record->getNumberOfChildren() > 1) { |
88 | - $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() .'&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
88 | + $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | // delete |
@@ -16,7 +16,6 @@ |
||
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use DateTime; |
19 | -use Fisharebest\Webtrees\Controller\PageController; |
|
20 | 19 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
21 | 20 | use PDOException; |
22 | 21 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | namespace Fisharebest\Webtrees\Module; |
17 | 17 | |
18 | -use Fisharebest\Webtrees\Auth; |
|
19 | 18 | use Fisharebest\Webtrees\Date; |
20 | 19 | use Fisharebest\Webtrees\Fact; |
21 | 20 | use Fisharebest\Webtrees\Family; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | namespace Fisharebest\Webtrees\Module; |
17 | 17 | |
18 | -use Fisharebest\Webtrees\Auth; |
|
19 | 18 | use Fisharebest\Webtrees\Database; |
20 | 19 | use Fisharebest\Webtrees\Filter; |
21 | 20 | use Fisharebest\Webtrees\I18N; |