@@ -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 |
@@ -2235,7 +2235,7 @@ discard block |
||
2235 | 2235 | 'place_id' => $place_id, |
2236 | 2236 | ]); |
2237 | 2237 | } catch (\Exception $ex) { |
2238 | - FlashMessages::addMessage(I18N::translate('Location not removed: this location contains sub-locations'),'danger'); |
|
2238 | + FlashMessages::addMessage(I18N::translate('Location not removed: this location contains sub-locations'), 'danger'); |
|
2239 | 2239 | } |
2240 | 2240 | |
2241 | 2241 | header('Location: module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $parent_id . '&inactive=' . $inactive); |
@@ -2582,7 +2582,7 @@ discard block |
||
2582 | 2582 | [0 => I18N::translate('Geographic data')] + |
2583 | 2583 | $this->placeIdToHierarchy($place_id === 0 ? $parent_id : $place_id); |
2584 | 2584 | foreach ($hierarchy as $id => $name) { |
2585 | - $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id .'&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
2585 | + $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id . '&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
2586 | 2586 | } |
2587 | 2587 | echo Bootstrap4::breadcrumbs($breadcrumbs, $place_id === 0 ? I18N::translate('Add') : I18N::translate('Edit')); |
2588 | 2588 | |
@@ -3088,7 +3088,7 @@ discard block |
||
3088 | 3088 | [0 => I18N::translate('Geographic data')] + |
3089 | 3089 | $this->placeIdToHierarchy($parent_id); |
3090 | 3090 | foreach (array_slice($hierarchy, 0, -1, true) as $id => $name) { |
3091 | - $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id .'&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
3091 | + $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id . '&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
3092 | 3092 | } |
3093 | 3093 | echo Bootstrap4::breadcrumbs($breadcrumbs, end($hierarchy)); |
3094 | 3094 | |
@@ -3280,7 +3280,7 @@ discard block |
||
3280 | 3280 | <?php endif ?> |
3281 | 3281 | </td> |
3282 | 3282 | <td> |
3283 | - <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['href' => 'module.php?mod=googlemap&mod_action=admin_place_edit&action=update&place_id=' . $place['place_id'] . '&parent_id=' . $place['parent_id'], 'class' => 'btn btn-primary']) ?> |
|
3283 | + <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['href' => 'module.php?mod=googlemap&mod_action=admin_place_edit&action=update&place_id=' . $place['place_id'] . '&parent_id=' . $place['parent_id'], 'class' => 'btn btn-primary']) ?> |
|
3284 | 3284 | </td> |
3285 | 3285 | <td> |
3286 | 3286 | <?php if ($noRows == 0): ?> |
@@ -3289,7 +3289,7 @@ discard block |
||
3289 | 3289 | <input type="hidden" name="place_id" value="<?= $place['place_id'] ?>"> |
3290 | 3290 | <input type="hidden" name="inactive" value="<?= $inactive ?>"> |
3291 | 3291 | <button type="submit" class="btn btn-danger"> |
3292 | - <?= FontAwesome::semanticIcon('delete', I18N::translate('Delete')) ?> |
|
3292 | + <?= FontAwesome::semanticIcon('delete', I18N::translate('Delete')) ?> |
|
3293 | 3293 | </button> |
3294 | 3294 | </form> |
3295 | 3295 | <?php else: ?> |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | } |
129 | 129 | } |
130 | - if ($user_id < 0 || $gedcom_id < 0 ) { |
|
130 | + if ($user_id < 0 || $gedcom_id < 0) { |
|
131 | 131 | header('Location: admin.php'); |
132 | 132 | } elseif ($user_id > 0) { |
133 | 133 | header('Location: index.php?ctype=user&ged=' . $WT_TREE->getNameUrl()); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | <?= FontAwesome::decorativeIcon('save') ?> |
372 | 372 | <?= I18N::translate('save') ?> |
373 | 373 | </button> |
374 | - <?php if ($user_id < 0 || $gedcom_id < 0 ): ?> |
|
374 | + <?php if ($user_id < 0 || $gedcom_id < 0): ?> |
|
375 | 375 | <a class="btn btn-secondary" href="admin.php"> |
376 | 376 | <?php elseif ($user_id > 0): ?> |
377 | 377 | <a class="btn btn-secondary" href="index.php?ctype=user&ged=<?= $WT_TREE->getNameHtml() ?>"> |