Permalink
Browse files

Use strict type

  • Loading branch information...
JustCarmen committed Dec 10, 2017
1 parent 9b5eade commit 4fe7418e0d609b91165a9b97d497fb5d0f287f8a
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/Template/AdminTemplate.php
@@ -44,6 +44,7 @@ private function pageBody(PageController $controller) {
route('admin-modules') => I18N::translate('Module administration'),
'module.php?mod=' . $this->getName() . '&mod_action=admin_config' => $this->getTitle(),
], $controller->getPageTitle()); ?>

<h1><?= $controller->getPageTitle() ?></h1>
<p><?= I18N::translate('A GENDEX file is an index of personal data and a short page URL. It is used to index a genealogical website by a genealogical search engine. The idea behind it is to join numerous pedigrees of individual genealogical researchers to a central database, while the individual genealogical researchers are still keeping all control over their data. Unlike a GEDCOM file a GENDEX file contains no information about the family relationships between individuals. This means the file is useless without the corresponding website.') ?></p>
<p><?= I18N::translate('The GENDEX file will only contain public data.') ?></p>
@@ -54,11 +55,11 @@ private function pageBody(PageController $controller) {
<div class="form-group">
<?php
foreach (Tree::getAll() as $tree) {
echo Bootstrap4::checkbox($tree->getTitle(), false, ['name' => 'FG' . $tree->getTreeId(), 'checked' => $tree->getPreference('FANCY_GENDEX')]);
echo Bootstrap4::checkbox($tree->getTitle(), false, ['name' => 'FG' . $tree->getTreeId(), 'checked' => (bool) $tree->getPreference('FANCY_GENDEX')]);
} ?>
</div>
<div class="form-group">
<?= Bootstrap4::checkbox(I18N::translate('Replace special characters in the GENDEX file'), false, ['name' => 'FG_REPLACE_CHARS', 'checked' => $this->getPreference('FG_REPLACE_CHARS')]) ?>
<?= Bootstrap4::checkbox(I18N::translate('Replace special characters in the GENDEX file'), false, ['name' => 'FG_REPLACE_CHARS', 'checked' => (bool) $this->getPreference('FG_REPLACE_CHARS')]) ?>
<p class="small muted"><?= I18N::translate('Some GENDEX search engines do not display special characters properly. If you encounter any problems you might get better results by enabling this setting.') ?></p>
</div>
<?php

0 comments on commit 4fe7418

Please sign in to comment.