@@ -770,13 +770,15 @@ |
||
| 770 | 770 | <p> |
| 771 | 771 | <?php if ($ucnt): ?> |
| 772 | 772 | <input type="submit" value="<?= I18N::translate('delete') ?>"> |
| 773 | - <?php else: ?> |
|
| 773 | + <?php else { |
|
| 774 | + : ?> |
|
| 774 | 775 | <?= I18N::translate('Nothing found to cleanup') ?> |
| 775 | 776 | <?php endif ?> |
| 776 | 777 | </p> |
| 777 | 778 | </form> |
| 778 | 779 | <?php |
| 779 | 780 | break; |
| 781 | +} |
|
| 780 | 782 | |
| 781 | 783 | case 'cleanup2': |
| 782 | 784 | foreach (User::all() as $user) { |
@@ -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>'; |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | switch ($action) { |
| 49 | 49 | case 'delete': |
| 50 | - Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id,]); |
|
| 50 | + Database::prepare("DELETE FROM `##news` WHERE news_id = :news_id")->execute(['news_id' => $news_id, ]); |
|
| 51 | 51 | |
| 52 | 52 | header('Location: index.php?ctype=' . $ctype . '&ged=' . $controller->tree()->getNameUrl()); |
| 53 | 53 | |
@@ -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 | [ |
@@ -382,7 +382,8 @@ discard block |
||
| 382 | 382 | <a href="<?= e($individual->url()) ?>#tab-stories"> |
| 383 | 383 | <?= $individual->getFullName() ?> |
| 384 | 384 | </a> |
| 385 | - <?php else: ?> |
|
| 385 | + <?php else { |
|
| 386 | + : ?> |
|
| 386 | 387 | <?= $story->xref ?> |
| 387 | 388 | <?php endif ?> |
| 388 | 389 | </td> |
@@ -411,6 +412,7 @@ discard block |
||
| 411 | 412 | */ |
| 412 | 413 | private function showList() { |
| 413 | 414 | global $controller, $WT_TREE; |
| 415 | +} |
|
| 414 | 416 | |
| 415 | 417 | $controller = new PageController; |
| 416 | 418 | $controller |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | /** {@inheritdoc} */ |
| 96 | 96 | public function hasTabContent(Individual $individual) { |
| 97 | - return Auth::isManager($individual->getTree() )|| !empty($this->getStoriesForIndividual($individual)); |
|
| 97 | + return Auth::isManager($individual->getTree()) || !empty($this->getStoriesForIndividual($individual)); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** {@inheritdoc} */ |
@@ -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): ?> |