@@ -235,7 +235,8 @@ discard block  | 
                                                    ||
| 235 | 235 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?>  | 
                                                        
| 236 | 236 | <?php // page, which makes them all again! ?>  | 
                                                        
| 237 | 237 | <script>reset_reload();</script>  | 
                                                        
| 238 | - <?php else: ?>  | 
                                                        |
| 238 | +			<?php else { | 
                                                        |
| 239 | + : ?>  | 
                                                        |
| 239 | 240 | <hr>  | 
                                                        
| 240 | 241 | <div id="batch_update2" class="col-sm-12">  | 
                                                        
| 241 | 242 | <?php if ($this->curr_xref): ?>  | 
                                                        
@@ -273,6 +274,7 @@ discard block  | 
                                                    ||
| 273 | 274 |  		foreach (array_keys($this->all_xrefs) as $key) { | 
                                                        
| 274 | 275 |  			if ($key > $xref) { | 
                                                        
| 275 | 276 | $record = self::getLatestRecord($key, $this->all_xrefs[$key]);  | 
                                                        
| 277 | +}  | 
                                                        |
| 276 | 278 |  				if ($this->PLUGIN->doesRecordNeedUpdate($key, $record)) { | 
                                                        
| 277 | 279 | return $key;  | 
                                                        
| 278 | 280 | }  | 
                                                        
@@ -29,10 +29,10 @@  | 
                                                    ||
| 29 | 29 | // Check for updates  | 
                                                        
| 30 | 30 | $latest_version_txt = Functions::fetchLatestVersion();  | 
                                                        
| 31 | 31 |  if (preg_match('/^[0-9.]+\|[0-9.]+\|/', $latest_version_txt)) { | 
                                                        
| 32 | -	list($latest_version, , $download_url) = explode('|', $latest_version_txt); | 
                                                        |
| 32 | +	list($latest_version,, $download_url) = explode('|', $latest_version_txt); | 
                                                        |
| 33 | 33 |  } else { | 
                                                        
| 34 | 34 | // Cannot determine the latest version  | 
                                                        
| 35 | -	list($latest_version, , $download_url) = explode('|', '||'); | 
                                                        |
| 35 | +	list($latest_version,, $download_url) = explode('|', '||'); | 
                                                        |
| 36 | 36 | }  | 
                                                        
| 37 | 37 | |
| 38 | 38 | $latest_version_html = '<span dir="ltr">' . $latest_version . '</span>';  | 
                                                        
@@ -168,7 +168,7 @@  | 
                                                    ||
| 168 | 168 | DebugBar::addThrowable($ex);  | 
                                                        
| 169 | 169 | |
| 170 | 170 | // The module has been deleted or is broken? Disable it.  | 
                                                        
| 171 | -					Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it. " . $ex->getMessage()); | 
                                                        |
| 171 | +					Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it. " . $ex->getMessage()); | 
                                                        |
| 172 | 172 | Database::prepare(  | 
                                                        
| 173 | 173 | "UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name"  | 
                                                        
| 174 | 174 | )->execute([  | 
                                                        
@@ -78,8 +78,7 @@  | 
                                                    ||
| 78 | 78 | // Create the underlying PDO object  | 
                                                        
| 79 | 79 | self::$pdo = new PDO(  | 
                                                        
| 80 | 80 | (substr($config['dbhost'], 0, 1) === '/' ?  | 
                                                        
| 81 | -				"mysql:unix_socket={$config['dbhost']};dbname={$config['dbname']}" : | 
                                                        |
| 82 | -				"mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}" | 
                                                        |
| 81 | +				"mysql:unix_socket={$config['dbhost']};dbname={$config['dbname']}" : "mysql:host={$config['dbhost']};dbname={$config['dbname']};port={$config['dbport']}" | 
                                                        |
| 83 | 82 | ),  | 
                                                        
| 84 | 83 | $config['dbuser'], $config['dbpass'],  | 
                                                        
| 85 | 84 | [  | 
                                                        
@@ -200,7 +200,8 @@ discard block  | 
                                                    ||
| 200 | 200 | <div class="tab-pane fade show active" role="tabpanel" id="individuals">  | 
                                                        
| 201 | 201 | <?php if (empty($myindilist)): ?>  | 
                                                        
| 202 | 202 |  						<p><?= I18N::translate('No results found.') ?></p> | 
                                                        
| 203 | - <?php else: ?>  | 
                                                        |
| 203 | +				<?php else { | 
                                                        |
| 204 | + : ?>  | 
                                                        |
| 204 | 205 | <?= FunctionsPrintLists::individualTable($myindilist) ?>  | 
                                                        
| 205 | 206 | <?php endif ?>  | 
                                                        
| 206 | 207 | </div>  | 
                                                        
@@ -216,6 +217,7 @@ discard block  | 
                                                    ||
| 216 | 217 | <?php  | 
                                                        
| 217 | 218 | }  | 
                                                        
| 218 | 219 |  		echo '<h4><a href="placelist.php?display=list">', I18N::translate('Show all places in a list'), '</a></h4>'; | 
                                                        
| 220 | +}  | 
                                                        |
| 219 | 221 | |
| 220 | 222 |  		if ($gm_module && $gm_module->getPreference('GM_PLACE_HIERARCHY')) { | 
                                                        
| 221 | 223 | $gm_module->mapScripts($numfound, $level, $parent, $linklevels, $place_names);  | 
                                                        
@@ -3,7 +3,7 @@  | 
                                                    ||
| 3 | 3 | <?php use Fisharebest\Webtrees\Theme; ?>  | 
                                                        
| 4 | 4 | <?php use Fisharebest\Webtrees\View; ?>  | 
                                                        
| 5 | 5 | |
| 6 | -<form method="post" action="<?= e(Html::url('module.php' ,['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> | 
                                                        |
| 6 | +<form method="post" action="<?= e(Html::url('module.php', ['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> | 
                                                        |
| 7 | 7 |  	<input type="search" name="sb_indi_name" id="sb_indi_name" placeholder="<?= I18N::translate('Search') ?>"> | 
                                                        
| 8 | 8 | <p>  | 
                                                        
| 9 | 9 | <?php foreach ($initials as $letter => $count): ?>  | 
                                                        
@@ -3,7 +3,7 @@  | 
                                                    ||
| 3 | 3 | <?php use Fisharebest\Webtrees\Theme; ?>  | 
                                                        
| 4 | 4 | <?php use Fisharebest\Webtrees\View; ?>  | 
                                                        
| 5 | 5 | |
| 6 | -<form method="post" action="<?= e(Html::url('module.php' ,['mod' => 'families', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> | 
                                                        |
| 6 | +<form method="post" action="<?= e(Html::url('module.php', ['mod' => 'families', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> | 
                                                        |
| 7 | 7 |  	<input type="search" name="sb_fam_name" id="sb_fam_name" placeholder="<?= I18N::translate('Search') ?>"> | 
                                                        
| 8 | 8 | <p>  | 
                                                        
| 9 | 9 | <?php foreach ($initials as $letter => $count): ?>  | 
                                                        
@@ -3,9 +3,12 @@  | 
                                                    ||
| 3 | 3 | |
| 4 | 4 | <?php if ($summary !== ''): ?>  | 
                                                        
| 5 | 5 | <span class="details_label"><?= $summary ?></span>  | 
                                                        
| 6 | -<?php else: ?>  | 
                                                        |
| 6 | +<?php else { | 
                                                        |
| 7 | + : ?>  | 
                                                        |
| 7 | 8 | <?php foreach ($facts as $fact): ?>  | 
                                                        
| 8 | - <?php $record = $fact->getParent(); ?>  | 
                                                        |
| 9 | + <?php $record = $fact->getParent();  | 
                                                        |
| 10 | +}  | 
                                                        |
| 11 | +?>  | 
                                                        |
| 9 | 12 | <a href="<?= e($record->url()) ?>" class="list_item name2">  | 
                                                        
| 10 | 13 | <?= $record->getFullName() ?>  | 
                                                        
| 11 | 14 | </a>  | 
                                                        
@@ -85,7 +85,7 @@ discard block  | 
                                                    ||
| 85 | 85 | ]);  | 
                                                        
| 86 | 86 | break;  | 
                                                        
| 87 | 87 | case 'descendants':  | 
                                                        
| 88 | -					$title           = I18N::translate('Descendants of %s', $person->getFullName()); | 
                                                        |
| 88 | +					$title = I18N::translate('Descendants of %s', $person->getFullName()); | 
                                                        |
| 89 | 89 |  					$chart_url = route('descendants-chart', [ | 
                                                        
| 90 | 90 | 'xref' => $person->getXref(),  | 
                                                        
| 91 | 91 | 'ged' => $person->getTree()->getName(),  | 
                                                        
@@ -98,7 +98,7 @@ discard block  | 
                                                    ||
| 98 | 98 | ]);  | 
                                                        
| 99 | 99 | break;  | 
                                                        
| 100 | 100 | case 'hourglass':  | 
                                                        
| 101 | -					$title           = I18N::translate('Hourglass chart of %s', $person->getFullName()); | 
                                                        |
| 101 | +					$title = I18N::translate('Hourglass chart of %s', $person->getFullName()); | 
                                                        |
| 102 | 102 |  					$chart_url = route('hourglass-chart', [ | 
                                                        
| 103 | 103 | 'xref' => $person->getXref(),  | 
                                                        
| 104 | 104 | 'ged' => $person->getTree()->getName(),  |