@@ -44,7 +44,7 @@ |
||
44 | 44 | $form_pass2 = Filter::post('form_pass2', WT_REGEX_PASSWORD); |
45 | 45 | $form_email = Filter::postEmail('form_email'); |
46 | 46 | $form_rootid = Filter::post('form_rootid', WT_REGEX_XREF); |
47 | -$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), '');; |
|
47 | +$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), ''); ; |
|
48 | 48 | $form_language = Filter::post('form_language'); |
49 | 49 | $form_timezone = Filter::post('form_timezone'); |
50 | 50 | $form_contact_method = Filter::post('form_contact_method'); |
@@ -183,8 +183,11 @@ |
||
183 | 183 | <div class="value"> |
184 | 184 | <?php if ($my_individual_record): ?> |
185 | 185 | <?php echo $my_individual_record->formatList('span'); ?> |
186 | - <?php else: ?> |
|
187 | - <?php echo I18N::translateContext('unknown people', 'Unknown'); ?> |
|
186 | + <?php else { |
|
187 | + : ?> |
|
188 | + <?php echo I18N::translateContext('unknown people', 'Unknown'); |
|
189 | +} |
|
190 | +?> |
|
188 | 191 | <?php endif; ?> |
189 | 192 | <p class="small text-muted"> |
190 | 193 | <?php echo I18N::translate('This is a link to your own record in the family tree. If this is the wrong individual, contact an administrator.'); ?> |
@@ -551,18 +551,24 @@ |
||
551 | 551 | <div class="bg-danger text-danger"> |
552 | 552 | <?php echo $resn->xref, ' — ', I18N::translate('this record does not exist'); ?> |
553 | 553 | </div> |
554 | - <?php else: ?> |
|
554 | + <?php else { |
|
555 | + : ?> |
|
555 | 556 | <div class="text-muted"> |
556 | - <?php echo I18N::translate('All records'); ?> |
|
557 | + <?php echo I18N::translate('All records'); |
|
558 | +} |
|
559 | +?> |
|
557 | 560 | </div> |
558 | 561 | <?php endif; ?> |
559 | 562 | </td> |
560 | 563 | <td> |
561 | 564 | <?php if ($resn->tag_label): ?> |
562 | 565 | <?php echo $resn->tag_label; ?> |
563 | - <?php else: ?> |
|
566 | + <?php else { |
|
567 | + : ?> |
|
564 | 568 | <div class="text-muted"> |
565 | - <?php echo I18N::translate('All facts and events'); ?> |
|
569 | + <?php echo I18N::translate('All facts and events'); |
|
570 | +} |
|
571 | +?> |
|
566 | 572 | </div> |
567 | 573 | <?php endif; ?> |
568 | 574 | </td> |
@@ -98,8 +98,11 @@ |
||
98 | 98 | <td class="col-xs-1"> |
99 | 99 | <?php if ($module instanceof ModuleConfigInterface): ?> |
100 | 100 | <a href="<?php echo $module->getConfigLink(); ?>"><?php echo $module->getTitle(); ?> <i class="fa fa-cogs"></i></a> |
101 | - <?php else: ?> |
|
102 | - <?php echo $module->getTitle(); ?> |
|
101 | + <?php else { |
|
102 | + : ?> |
|
103 | + <?php echo $module->getTitle(); |
|
104 | +} |
|
105 | +?> |
|
103 | 106 | <?php endif; ?> |
104 | 107 | </td> |
105 | 108 | <td class="col-xs-5"><?php echo $module->getDescription(); ?></td> |
@@ -81,8 +81,11 @@ |
||
81 | 81 | <td class="col-xs-2"> |
82 | 82 | <?php if ($module instanceof ModuleConfigInterface): ?> |
83 | 83 | <a href="<?php echo $module->getConfigLink(); ?>"><?php echo $module->getTitle(); ?> <i class="fa fa-cogs"></i></a> |
84 | - <?php else: ?> |
|
85 | - <?php echo $module->getTitle(); ?> |
|
84 | + <?php else { |
|
85 | + : ?> |
|
86 | + <?php echo $module->getTitle(); |
|
87 | +} |
|
88 | +?> |
|
86 | 89 | <?php endif; ?> |
87 | 90 | </td> |
88 | 91 | <td class="col-xs-5"><?php echo $module->getDescription(); ?></td> |
@@ -147,8 +147,11 @@ discard block |
||
147 | 147 | <div class="font9"> |
148 | 148 | <?php echo $spouse->getLifeSpan(); ?> |
149 | 149 | </div> |
150 | - <?php else: ?> |
|
151 | - <?php echo $spouse->getFullName(); ?> |
|
150 | + <?php else { |
|
151 | + : ?> |
|
152 | + <?php echo $spouse->getFullName(); |
|
153 | +} |
|
154 | +?> |
|
152 | 155 | <?php endif; ?> |
153 | 156 | </td> |
154 | 157 | </tr> |
@@ -172,8 +175,11 @@ discard block |
||
172 | 175 | <div class="font9"> |
173 | 176 | <?php echo $child->getLifeSpan(); ?> |
174 | 177 | </div> |
175 | - <?php else: ?> |
|
176 | - <?php echo $child->getFullName(); ?> |
|
178 | + <?php else { |
|
179 | + : ?> |
|
180 | + <?php echo $child->getFullName(); |
|
181 | +} |
|
182 | +?> |
|
177 | 183 | <?php endif; ?> |
178 | 184 | </td> |
179 | 185 | </tr> |
@@ -241,12 +241,15 @@ discard block |
||
241 | 241 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?> |
242 | 242 | <?php // page, which makes them all again! ?> |
243 | 243 | <script>reset_reload();</script> |
244 | - <?php else: ?> |
|
244 | + <?php else { |
|
245 | + : ?> |
|
245 | 246 | <hr> |
246 | 247 | <div id="batch_update2" class="col-sm-12"> |
247 | 248 | <?php if ($this->curr_xref): ?> |
248 | 249 | <?php // Create an object, so we can get the latest version of the name. ?> |
249 | - <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); ?> |
|
250 | + <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); |
|
251 | +} |
|
252 | +?> |
|
250 | 253 | <div class="form-group"> |
251 | 254 | <?php echo self::createSubmitButton(I18N::translate('previous'), $this->prev_xref) ?> |
252 | 255 | <?php echo self::createSubmitButton(I18N::translate('next'), $this->next_xref) ?> |
@@ -258,8 +261,11 @@ discard block |
||
258 | 261 | <div class="form-group"> |
259 | 262 | <?php echo implode(' ', $this->PLUGIN->getActionButtons($this->curr_xref, $this->record)); ?> |
260 | 263 | </div> |
261 | - <?php else: ?> |
|
262 | - <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); ?></div> |
|
264 | + <?php else { |
|
265 | + : ?> |
|
266 | + <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); |
|
267 | +} |
|
268 | +?></div> |
|
263 | 269 | <?php endif; ?> |
264 | 270 | </div> |
265 | 271 | <?php endif; ?> |
@@ -403,8 +403,11 @@ |
||
403 | 403 | <a href="<?php echo $individual->getHtmlUrl(); ?>#stories"> |
404 | 404 | <?php echo $individual->getFullName(); ?> |
405 | 405 | </a> |
406 | - <?php else: ?> |
|
407 | - <?php echo $story->xref; ?> |
|
406 | + <?php else { |
|
407 | + : ?> |
|
408 | + <?php echo $story->xref; |
|
409 | +} |
|
410 | +?> |
|
408 | 411 | <?php endif; ?> |
409 | 412 | </td> |
410 | 413 | <td> |
@@ -60,14 +60,14 @@ |
||
60 | 60 | 'MADRI', 'MANAU', 'MANHA', 'MANIL', 'MANTI', 'MEDFO', 'MELBO', 'MEMPH', |
61 | 61 | 'MERID', 'MEXIC', 'MNTVD', 'MONTE', 'MONTI', 'MONTR', 'MTIMP', 'NASHV', |
62 | 62 | 'NAUV2', 'NAUVO', 'NBEAC', 'NUKUA', 'NYORK', 'NZEAL', 'OAKLA', 'OAXAC', |
63 | - 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
64 | - 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
63 | + 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
64 | + 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
65 | 65 | 'QUETZ', 'RALEI', 'RECIF', 'REDLA', 'REGIN', 'RENO', 'REXBU', 'SACRA', |
66 | - 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
67 | - 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF','SPAUL', 'SPMIN', 'SPOKA', |
|
66 | + 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
67 | + 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF', 'SPAUL', 'SPMIN', 'SPOKA', |
|
68 | 68 | 'STOCK', 'SUVA', 'SWISS', 'SYDNE', 'TAIPE', 'TAMPI', 'TEGUC', 'TGUTI', |
69 | - 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
70 | - 'VILLA', 'WASHI', 'WINTE', |
|
69 | + 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
70 | + 'VILLA', 'WASHI', 'WINTE', |
|
71 | 71 | ); |
72 | 72 | } |
73 | 73 |
@@ -91,8 +91,7 @@ |
||
91 | 91 | // Create the underlying PDO object |
92 | 92 | self::$pdo = new PDO( |
93 | 93 | (substr($DBHOST, 0, 1) === '/' ? |
94 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
95 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
94 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
96 | 95 | ), |
97 | 96 | $DBUSER, $DBPASS, |
98 | 97 | array( |