@@ -67,14 +67,14 @@ |
||
67 | 67 | if (strlen($match[1]) > strlen($match[2])) { |
68 | 68 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2]; |
69 | 69 | } |
70 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
70 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
71 | 71 | $view = 'year'; |
72 | 72 | } else { |
73 | 73 | // advanced-year "decade/century wildcard" |
74 | 74 | if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
75 | 75 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
76 | 76 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
77 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
77 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
78 | 78 | $view = 'year'; |
79 | 79 | } else { |
80 | 80 | if ($year < 0) { |
@@ -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 |
@@ -82,7 +82,8 @@ discard block |
||
82 | 82 | <?php if ($ancestors_only === '1'): ?> |
83 | 83 | <input type="hidden" name="ancestors" value="1"> |
84 | 84 | <?= I18N::translate('Find relationships via ancestors') ?> |
85 | - <?php else: ?> |
|
85 | + <?php else { |
|
86 | + : ?> |
|
86 | 87 | <?= Bootstrap4::radioButtons('ancestors', ['0' => I18N::translate('Find any relationship'), '1' => I18N::translate('Find relationships via ancestors')], $ancestors, false) ?> |
87 | 88 | <?php endif ?> |
88 | 89 | </div> |
@@ -116,6 +117,7 @@ discard block |
||
116 | 117 | if ($person1 && $person2) { |
117 | 118 | if (I18N::direction() === 'ltr') { |
118 | 119 | $diagonal1 = Theme::theme()->parameter('image-dline'); |
120 | +} |
|
119 | 121 | $diagonal2 = Theme::theme()->parameter('image-dline2'); |
120 | 122 | } else { |
121 | 123 | $diagonal1 = Theme::theme()->parameter('image-dline2'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * You should have received a copy of the GNU General Public License |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Fisharebest\Webtrees; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * You should have received a copy of the GNU General Public License |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Fisharebest\Webtrees; |
19 | 19 |
@@ -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([ |