@@ -52,10 +52,18 @@ |
||
| 52 | 52 | $password = Filter::post('password'); |
| 53 | 53 | |
| 54 | 54 | // These parameters may come from the URL which is emailed to users. |
| 55 | -if (!$action) $action = Filter::get('action'); |
|
| 56 | -if (!$user_name) $user_name = Filter::get('user_name'); |
|
| 57 | -if (!$user_hashcode) $user_hashcode = Filter::get('user_hashcode'); |
|
| 58 | -if (!$url) $url = Filter::get('url'); |
|
| 55 | +if (!$action) { |
|
| 56 | + $action = Filter::get('action'); |
|
| 57 | +} |
|
| 58 | +if (!$user_name) { |
|
| 59 | + $user_name = Filter::get('user_name'); |
|
| 60 | +} |
|
| 61 | +if (!$user_hashcode) { |
|
| 62 | + $user_hashcode = Filter::get('user_hashcode'); |
|
| 63 | +} |
|
| 64 | +if (!$url) { |
|
| 65 | + $url = Filter::get('url'); |
|
| 66 | +} |
|
| 59 | 67 | |
| 60 | 68 | $message = ''; |
| 61 | 69 | |
@@ -825,7 +825,9 @@ discard block |
||
| 825 | 825 | $person = $this->ancestors[$i]; |
| 826 | 826 | if (!empty($person)) { |
| 827 | 827 | $name = $person->getFullName(); |
| 828 | - if ($name == I18N::translate('Private')) $priv++; |
|
| 828 | + if ($name == I18N::translate('Private')) { |
|
| 829 | + $priv++; |
|
| 830 | + } |
|
| 829 | 831 | $place = $person->getBirthPlace(); |
| 830 | 832 | if (empty($place)) { |
| 831 | 833 | $latlongval[$i] = null; |
@@ -1715,8 +1717,9 @@ discard block |
||
| 1715 | 1717 | |
| 1716 | 1718 | if ($row['pl_place'] != '') { |
| 1717 | 1719 | $placestr2 = $mapstr_edit . $id . "&level=" . $level . $mapstr3 . $mapstr5 . I18N::translate('Zoom=') . $row['pl_zoom'] . $mapstr6 . $row['pl_placerequested'] . $mapstr8; |
| 1718 | - if ($row['pl_place'] === 'unknown') |
|
| 1719 | - $matched[$x]++; |
|
| 1720 | + if ($row['pl_place'] === 'unknown') { |
|
| 1721 | + $matched[$x]++; |
|
| 1722 | + } |
|
| 1720 | 1723 | } else { |
| 1721 | 1724 | if ($levels[$z] === 'unknown') { |
| 1722 | 1725 | $placestr2 = $mapstr_add . $id . "&level=" . $level . $mapstr3 . $mapstr7 . "<strong>" . I18N::translate('unknown') . "</strong>" . $mapstr8; $matched[$x]++; |
@@ -2828,8 +2831,9 @@ discard block |
||
| 2828 | 2831 | $parent[$level] = $place2['place']; |
| 2829 | 2832 | $this->printHowManyPeople($level + 1, $parent); |
| 2830 | 2833 | echo '<br>', I18N::translate('This place has no coordinates'); |
| 2831 | - if (Auth::isAdmin()) |
|
| 2832 | - echo "<br><a href='module.php?mod=googlemap&mod_action=admin_places&parent=", $levelm, "&display=inactive'>", I18N::translate('Geographic data'), "</a>"; |
|
| 2834 | + if (Auth::isAdmin()) { |
|
| 2835 | + echo "<br><a href='module.php?mod=googlemap&mod_action=admin_places&parent=", $levelm, "&display=inactive'>", I18N::translate('Geographic data'), "</a>"; |
|
| 2836 | + } |
|
| 2833 | 2837 | echo "</div>\", icon_type, \"", str_replace(array('‎', '‏'), array(WT_UTF8_LRM, WT_UTF8_RLM), addslashes($place2['place'])), "\");\n"; |
| 2834 | 2838 | } else { |
| 2835 | 2839 | $lati = str_replace(array('N', 'S', ','), array('', '-', '.'), $place2['lati']); |
@@ -3030,7 +3034,8 @@ discard block |
||
| 3030 | 3034 | ob_start(); // TODO: rewrite print_gm_markers, and the functions called therein, to either return text or add JS directly. |
| 3031 | 3035 | |
| 3032 | 3036 | if ($numfound == 0 && $level > 0) { |
| 3033 | - if (isset($levelo[($level - 1)])) { // ** BH not sure yet what this if statement is for ... TODO ** |
|
| 3037 | + if (isset($levelo[($level - 1)])) { |
|
| 3038 | +// ** BH not sure yet what this if statement is for ... TODO ** |
|
| 3034 | 3039 | // show the current place on the map |
| 3035 | 3040 | |
| 3036 | 3041 | $place = Database::prepare("SELECT pl_id as place_id, pl_place as place, pl_lati as lati, pl_long as `long`, pl_zoom as zoom, pl_icon as icon FROM `##placelocation` WHERE pl_id=?") |
@@ -3305,10 +3310,11 @@ discard block |
||
| 3305 | 3310 | $place_name = $row->pl_place; |
| 3306 | 3311 | $place_icon = $row->pl_icon; |
| 3307 | 3312 | $selected_country = explode("/", $place_icon); |
| 3308 | - if (isset($selected_country[1]) && $selected_country[1] != "flags") |
|
| 3309 | - $selected_country = $selected_country[1]; |
|
| 3310 | - else |
|
| 3311 | - $selected_country = "Countries"; |
|
| 3313 | + if (isset($selected_country[1]) && $selected_country[1] != "flags") { |
|
| 3314 | + $selected_country = $selected_country[1]; |
|
| 3315 | + } else { |
|
| 3316 | + $selected_country = "Countries"; |
|
| 3317 | + } |
|
| 3312 | 3318 | $parent_id = $row->pl_parent_id; |
| 3313 | 3319 | $level = $row->pl_level; |
| 3314 | 3320 | $zoomfactor = $row->pl_zoom; |
@@ -3387,8 +3393,9 @@ discard block |
||
| 3387 | 3393 | } else { |
| 3388 | 3394 | echo '<b>', $place_name; |
| 3389 | 3395 | } |
| 3390 | - if (count($where_am_i) > 0) |
|
| 3391 | - echo ', ', Filter::escapeHtml(str_replace('Unknown', I18N::translate('unknown'), implode(I18N::$list_separator, array_reverse($where_am_i, true)))), '</b><br>'; |
|
| 3396 | + if (count($where_am_i) > 0) { |
|
| 3397 | + echo ', ', Filter::escapeHtml(str_replace('Unknown', I18N::translate('unknown'), implode(I18N::$list_separator, array_reverse($where_am_i, true)))), '</b><br>'; |
|
| 3398 | + } |
|
| 3392 | 3399 | echo '</b><br>'; |
| 3393 | 3400 | } |
| 3394 | 3401 | |
@@ -3897,7 +3904,8 @@ discard block |
||
| 3897 | 3904 | } |
| 3898 | 3905 | |
| 3899 | 3906 | function showLocation_level(address) { |
| 3900 | - address += '<?php if ($level > 0) echo ', ', addslashes(implode(', ', array_reverse($where_am_i, true))) ?>'; |
|
| 3907 | + address += '<?php if ($level > 0) { |
|
| 3908 | + echo ', ', addslashes(implode(', ', array_reverse($where_am_i, true))) ?>'; |
|
| 3901 | 3909 | geocoder.geocode({'address': address}, addAddressToMap); |
| 3902 | 3910 | } |
| 3903 | 3911 | |
@@ -3946,6 +3954,7 @@ discard block |
||
| 3946 | 3954 | </td> |
| 3947 | 3955 | <?php |
| 3948 | 3956 | $exp = explode(".", $place_lati); |
| 3957 | +} |
|
| 3949 | 3958 | if (isset($exp[1])) { |
| 3950 | 3959 | $precision1 = strlen($exp[1]); |
| 3951 | 3960 | } else { |
@@ -3958,13 +3967,15 @@ discard block |
||
| 3958 | 3967 | $precision2 = -1; |
| 3959 | 3968 | } |
| 3960 | 3969 | ($precision1 > $precision2) ? ($precision = $precision1) : ($precision = $precision2); |
| 3961 | - if ($precision == -1) ($level > 3) ? ($precision = 3) : ($precision = $level); |
|
| 3962 | - elseif ($precision > 5) { |
|
| 3970 | + if ($precision == -1) { |
|
| 3971 | + ($level > 3) ? ($precision = 3) : ($precision = $level); |
|
| 3972 | + } elseif ($precision > 5) { |
|
| 3963 | 3973 | $precision = 5; |
| 3964 | 3974 | } |
| 3965 | 3975 | ?> |
| 3966 | 3976 | <td class="optionbox" colspan="2"> |
| 3967 | - <input type="radio" id="new_prec_0" name="NEW_PRECISION" onchange="updateMap();" <?php if ($precision == $this->getSetting('GM_PRECISION_0')) echo 'checked' ?> value="<?php echo $this->getSetting('GM_PRECISION_0') ?>"> |
|
| 3977 | + <input type="radio" id="new_prec_0" name="NEW_PRECISION" onchange="updateMap();" <?php if ($precision == $this->getSetting('GM_PRECISION_0')) { |
|
| 3978 | + echo 'checked' ?> value="<?php echo $this->getSetting('GM_PRECISION_0') ?>"> |
|
| 3968 | 3979 | <label for="new_prec_0"><?php echo I18N::translate('Country') ?></label> |
| 3969 | 3980 | <input type="radio" id="new_prec_1" name="NEW_PRECISION" onchange="updateMap();" <?php if ($precision == $this->getSetting('GM_PRECISION_1')) echo 'checked' ?> value="<?php echo $this->getSetting('GM_PRECISION_1') ?>"> |
| 3970 | 3981 | <label for="new_prec_1"><?php echo I18N::translate('State') ?></label> |
@@ -3986,8 +3997,13 @@ discard block |
||
| 3986 | 3997 | <td class="optionbox" colspan="2"> |
| 3987 | 3998 | <input type="text" id="NEW_PLACE_LATI" name="NEW_PLACE_LATI" placeholder="<?php echo /* I18N: Measure of latitude/longitude */ I18N::translate('degrees') ?>" value="<?php echo abs($place_lati) ?>" size="20" onchange="updateMap();"> |
| 3988 | 3999 | <select name="LATI_CONTROL" onchange="updateMap();"> |
| 3989 | - <option value="PL_N" <?php if ($place_lati >= 0) echo "selected"; echo ">", I18N::translate('north') ?></option> |
|
| 3990 | - <option value="PL_S" <?php if ($place_lati < 0) echo "selected"; echo ">", I18N::translate('south') ?></option> |
|
| 4000 | + <option value="PL_N" <?php if ($place_lati >= 0) echo "selected"; |
|
| 4001 | +} |
|
| 4002 | +echo ">", I18N::translate('north') ?></option> |
|
| 4003 | + <option value="PL_S" <?php if ($place_lati < 0) { |
|
| 4004 | + echo "selected"; |
|
| 4005 | +} |
|
| 4006 | +echo ">", I18N::translate('south') ?></option> |
|
| 3991 | 4007 | </select> |
| 3992 | 4008 | </td> |
| 3993 | 4009 | </tr> |
@@ -3996,8 +4012,14 @@ discard block |
||
| 3996 | 4012 | <td class="optionbox" colspan="2"> |
| 3997 | 4013 | <input type="text" id="NEW_PLACE_LONG" name="NEW_PLACE_LONG" placeholder="<?php echo I18N::translate('degrees') ?>" value="<?php echo abs($place_long) ?>" size="20" onchange="updateMap();"> |
| 3998 | 4014 | <select name="LONG_CONTROL" onchange="updateMap();"> |
| 3999 | - <option value="PL_E" <?php if ($place_long >= 0) echo "selected"; echo ">", I18N::translate('east') ?></option> |
|
| 4000 | - <option value="PL_W" <?php if ($place_long < 0) echo "selected"; echo ">", I18N::translate('west') ?></option> |
|
| 4015 | + <option value="PL_E" <?php if ($place_long >= 0) { |
|
| 4016 | + echo "selected"; |
|
| 4017 | +} |
|
| 4018 | +echo ">", I18N::translate('east') ?></option> |
|
| 4019 | + <option value="PL_W" <?php if ($place_long < 0) { |
|
| 4020 | + echo "selected"; |
|
| 4021 | +} |
|
| 4022 | +echo ">", I18N::translate('west') ?></option> |
|
| 4001 | 4023 | </select> |
| 4002 | 4024 | </td> |
| 4003 | 4025 | </tr> |
@@ -4210,8 +4232,9 @@ discard block |
||
| 4210 | 4232 | $parent = array_reverse($parent); |
| 4211 | 4233 | $parent_id = 0; |
| 4212 | 4234 | for ($i = 0; $i < count($parent); $i++) { |
| 4213 | - if (!isset($default_zoom_level[$i])) |
|
| 4214 | - $default_zoom_level[$i] = $default_zoom_level[$i - 1]; |
|
| 4235 | + if (!isset($default_zoom_level[$i])) { |
|
| 4236 | + $default_zoom_level[$i] = $default_zoom_level[$i - 1]; |
|
| 4237 | + } |
|
| 4215 | 4238 | $escparent = $parent[$i]; |
| 4216 | 4239 | if ($escparent == '') { |
| 4217 | 4240 | $escparent = 'Unknown'; |
@@ -4451,7 +4474,8 @@ discard block |
||
| 4451 | 4474 | Database::prepare("SELECT pl_id, pl_long, pl_lati, pl_zoom, pl_icon FROM `##placelocation` WHERE pl_level=? AND pl_parent_id=? AND pl_place LIKE ? ORDER BY pl_place") |
| 4452 | 4475 | ->execute(array($i, $parent_id, $escparent)) |
| 4453 | 4476 | ->fetchOneRow(); |
| 4454 | - if (empty($row)) { // this name does not yet exist: create entry |
|
| 4477 | + if (empty($row)) { |
|
| 4478 | +// this name does not yet exist: create entry |
|
| 4455 | 4479 | if (!Filter::postBool('updateonly')) { |
| 4456 | 4480 | $highestIndex = $highestIndex + 1; |
| 4457 | 4481 | if (($i + 1) == count($parent)) { |
@@ -4590,14 +4614,16 @@ discard block |
||
| 4590 | 4614 | echo '<th>', I18N::translate('Icon'), '</th>'; |
| 4591 | 4615 | echo '<th>'; |
| 4592 | 4616 | echo I18N::translate('Edit'), '</th><th>', I18N::translate('Delete'), '</th></tr>'; |
| 4593 | - if (count($placelist) == 0) |
|
| 4594 | - echo '<tr><td colspan="7">', I18N::translate('No places found'), '</td></tr>'; |
|
| 4617 | + if (count($placelist) == 0) { |
|
| 4618 | + echo '<tr><td colspan="7">', I18N::translate('No places found'), '</td></tr>'; |
|
| 4619 | + } |
|
| 4595 | 4620 | foreach ($placelist as $place) { |
| 4596 | 4621 | echo '<tr><td><a href="module.php?mod=googlemap&mod_action=admin_places&parent=', $place['place_id'], '&inactive=', $inactive, '">'; |
| 4597 | - if ($place['place'] != 'Unknown') |
|
| 4598 | - echo Filter::escapeHtml($place['place']), '</a></td>'; |
|
| 4599 | - else |
|
| 4600 | - echo I18N::translate('unknown'), '</a></td>'; |
|
| 4622 | + if ($place['place'] != 'Unknown') { |
|
| 4623 | + echo Filter::escapeHtml($place['place']), '</a></td>'; |
|
| 4624 | + } else { |
|
| 4625 | + echo I18N::translate('unknown'), '</a></td>'; |
|
| 4626 | + } |
|
| 4601 | 4627 | echo '<td>', $place['lati'], '</td>'; |
| 4602 | 4628 | echo '<td>', $place['long'], '</td>'; |
| 4603 | 4629 | echo '<td>', $place['zoom'], '</td>'; |
@@ -528,10 +528,12 @@ discard block |
||
| 528 | 528 | version_compare(PHP_VERSION, '7.0', '<') && date('Y-m-d') >= '2016-08-28' |
| 529 | 529 | ) { |
| 530 | 530 | $server_warnings[] = I18N::translate('Your web server is using PHP version %s, which is no longer maintained. You should upgrade to a later version.', PHP_VERSION); |
| 531 | -} else |
|
| 531 | +} else { |
|
| 532 | 532 | |
| 533 | 533 | ?> |
| 534 | -<h1><?php echo $controller->getPageTitle(); ?></h1> |
|
| 534 | +<h1><?php echo $controller->getPageTitle(); |
|
| 535 | +} |
|
| 536 | +?></h1> |
|
| 535 | 537 | |
| 536 | 538 | <p> |
| 537 | 539 | <?php echo I18N::translate('These pages provide access to all the configuration settings and management tools for this webtrees site.'); ?> |
@@ -584,8 +586,11 @@ discard block |
||
| 584 | 586 | <a href="admin_site_upgrade.php" class="error"> |
| 585 | 587 | <?php echo /* I18N: %s is a version number */ I18N::translate('Upgrade to webtrees %s.', Filter::escapeHtml($latest_version)); ?> |
| 586 | 588 | </a> |
| 587 | - <?php else: ?> |
|
| 588 | - <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); ?> |
|
| 589 | + <?php else { |
|
| 590 | + : ?> |
|
| 591 | + <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); |
|
| 592 | +} |
|
| 593 | +?> |
|
| 589 | 594 | <?php endif; ?> |
| 590 | 595 | </p> |
| 591 | 596 | <?php endif; ?> |
@@ -747,9 +752,12 @@ discard block |
||
| 747 | 752 | <?php echo I18N::number($changes[$tree->getTreeId()]); ?> |
| 748 | 753 | <span class="sr-only"><?php echo I18N::translate('Pending changes'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 749 | 754 | </a> |
| 750 | - <?php else: ?> |
|
| 755 | + <?php else { |
|
| 756 | + : ?> |
|
| 751 | 757 | - |
| 752 | - <?php endif; ?> |
|
| 758 | + <?php endif; |
|
| 759 | +} |
|
| 760 | +?> |
|
| 753 | 761 | </td> |
| 754 | 762 | <td class="text-right flip"> |
| 755 | 763 | <?php if ($individuals[$tree->getTreeId()]): ?> |
@@ -757,9 +765,12 @@ discard block |
||
| 757 | 765 | <?php echo I18N::number($individuals[$tree->getTreeId()]); ?> |
| 758 | 766 | <span class="sr-only"><?php echo I18N::translate('Individuals'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 759 | 767 | </a> |
| 760 | - <?php else: ?> |
|
| 768 | + <?php else { |
|
| 769 | + : ?> |
|
| 761 | 770 | - |
| 762 | - <?php endif; ?> |
|
| 771 | + <?php endif; |
|
| 772 | +} |
|
| 773 | +?> |
|
| 763 | 774 | </td> |
| 764 | 775 | <td class="text-right flip"> |
| 765 | 776 | <?php if ($families[$tree->getTreeId()]): ?> |
@@ -767,9 +778,12 @@ discard block |
||
| 767 | 778 | <?php echo I18N::number($families[$tree->getTreeId()]); ?> |
| 768 | 779 | <span class="sr-only"><?php echo I18N::translate('Families'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 769 | 780 | </a> |
| 770 | - <?php else: ?> |
|
| 781 | + <?php else { |
|
| 782 | + : ?> |
|
| 771 | 783 | - |
| 772 | - <?php endif; ?> |
|
| 784 | + <?php endif; |
|
| 785 | +} |
|
| 786 | +?> |
|
| 773 | 787 | </td> |
| 774 | 788 | <td class="text-right flip"> |
| 775 | 789 | <?php if ($sources[$tree->getTreeId()]): ?> |
@@ -777,9 +791,12 @@ discard block |
||
| 777 | 791 | <?php echo I18N::number($sources[$tree->getTreeId()]); ?> |
| 778 | 792 | <span class="sr-only"><?php echo I18N::translate('Sources'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 779 | 793 | </a> |
| 780 | - <?php else: ?> |
|
| 794 | + <?php else { |
|
| 795 | + : ?> |
|
| 781 | 796 | - |
| 782 | - <?php endif; ?> |
|
| 797 | + <?php endif; |
|
| 798 | +} |
|
| 799 | +?> |
|
| 783 | 800 | </td> |
| 784 | 801 | <td class="text-right flip"> |
| 785 | 802 | <?php if ($repositories[$tree->getTreeId()]): ?> |
@@ -787,9 +804,12 @@ discard block |
||
| 787 | 804 | <?php echo I18N::number($repositories[$tree->getTreeId()]); ?> |
| 788 | 805 | <span class="sr-only"><?php echo I18N::translate('Repositories'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 789 | 806 | </a> |
| 790 | - <?php else: ?> |
|
| 807 | + <?php else { |
|
| 808 | + : ?> |
|
| 791 | 809 | - |
| 792 | - <?php endif; ?> |
|
| 810 | + <?php endif; |
|
| 811 | +} |
|
| 812 | +?> |
|
| 793 | 813 | </td> |
| 794 | 814 | <td class="text-right flip"> |
| 795 | 815 | <?php if ($media[$tree->getTreeId()]): ?> |
@@ -797,9 +817,12 @@ discard block |
||
| 797 | 817 | <?php echo I18N::number($media[$tree->getTreeId()]); ?> |
| 798 | 818 | <span class="sr-only"><?php echo I18N::translate('Media objects'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
| 799 | 819 | </a> |
| 800 | - <?php else: ?> |
|
| 820 | + <?php else { |
|
| 821 | + : ?> |
|
| 801 | 822 | - |
| 802 | - <?php endif; ?> |
|
| 823 | + <?php endif; |
|
| 824 | +} |
|
| 825 | +?> |
|
| 803 | 826 | </td> |
| 804 | 827 | </tr> |
| 805 | 828 | <?php endforeach; ?> |
@@ -236,12 +236,15 @@ discard block |
||
| 236 | 236 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?> |
| 237 | 237 | <?php // page, which makes them all again! ?> |
| 238 | 238 | <script>reset_reload();</script> |
| 239 | - <?php else: ?> |
|
| 239 | + <?php else { |
|
| 240 | + : ?> |
|
| 240 | 241 | <hr> |
| 241 | 242 | <div id="batch_update2" class="col-sm-12"> |
| 242 | 243 | <?php if ($this->curr_xref): ?> |
| 243 | 244 | <?php // Create an object, so we can get the latest version of the name. ?> |
| 244 | - <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); ?> |
|
| 245 | + <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); |
|
| 246 | +} |
|
| 247 | +?> |
|
| 245 | 248 | <div class="form-group"> |
| 246 | 249 | <?php echo self::createSubmitButton(I18N::translate('previous'), $this->prev_xref) ?> |
| 247 | 250 | <?php echo self::createSubmitButton(I18N::translate('next'), $this->next_xref) ?> |
@@ -253,8 +256,11 @@ discard block |
||
| 253 | 256 | <div class="form-group"> |
| 254 | 257 | <?php echo implode(' ', $this->PLUGIN->getActionButtons($this->curr_xref, $this->record)); ?> |
| 255 | 258 | </div> |
| 256 | - <?php else: ?> |
|
| 257 | - <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); ?></div> |
|
| 259 | + <?php else { |
|
| 260 | + : ?> |
|
| 261 | + <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); |
|
| 262 | +} |
|
| 263 | +?></div> |
|
| 258 | 264 | <?php endif; ?> |
| 259 | 265 | </div> |
| 260 | 266 | <?php endif; ?> |
@@ -1,18 +1,18 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * webtrees: online genealogy |
|
| 4 | - * Copyright (C) 2015 webtrees development team |
|
| 5 | - * This program is free software: you can redistribute it and/or modify |
|
| 6 | - * it under the terms of the GNU General Public License as published by |
|
| 7 | - * the Free Software Foundation, either version 3 of the License, or |
|
| 8 | - * (at your option) any later version. |
|
| 9 | - * This program is distributed in the hope that it will be useful, |
|
| 10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 | - * GNU General Public License for more details. |
|
| 13 | - * You should have received a copy of the GNU General Public License |
|
| 14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 15 | - */ |
|
| 3 | + * webtrees: online genealogy |
|
| 4 | + * Copyright (C) 2015 webtrees development team |
|
| 5 | + * This program is free software: you can redistribute it and/or modify |
|
| 6 | + * it under the terms of the GNU General Public License as published by |
|
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
|
| 8 | + * (at your option) any later version. |
|
| 9 | + * This program is distributed in the hope that it will be useful, |
|
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 | + * GNU General Public License for more details. |
|
| 13 | + * You should have received a copy of the GNU General Public License |
|
| 14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 15 | + */ |
|
| 16 | 16 | namespace Fisharebest\Webtrees; |
| 17 | 17 | |
| 18 | 18 | use Fisharebest\Webtrees\Controller\PageController; |
@@ -421,7 +421,8 @@ |
||
| 421 | 421 | $translation = new Translation($translation_file); |
| 422 | 422 | $translations = array_merge($translations, $translation->asArray()); |
| 423 | 423 | } |
| 424 | - if ($cache_dir_exists && is_writeable($cache_file)) { // During setup, we may not have been able to create it. |
|
| 424 | + if ($cache_dir_exists && is_writeable($cache_file)) { |
|
| 425 | +// During setup, we may not have been able to create it. |
|
| 425 | 426 | file_put_contents($cache_file, '<' . '?php return ' . var_export($translations, true) . ';'); |
| 426 | 427 | } |
| 427 | 428 | } else { |