Skip to content

Commit

Permalink
settings: Fix loading of sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Jul 26, 2023
1 parent 1221682 commit 8a39046
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions html/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@
</div>

<div id="sideBar">
<?php include '../sidebar.php';
include 'ad-sidebar.html';
<?php
include_once '../sidebar.php';
include_once 'ad-sidebar.html';
?>
</div>

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>

<div id="sideBar">
<?php include "./sidebar.php"; ?>
<?php include_once "./sidebar.php"; ?>
<div id="login">
<div id="langselect" style="display: block; text-align: right; margin-bottom: 10px">
<?php locale_pulldown($dbh, $locale); ?>
Expand Down
2 changes: 0 additions & 2 deletions sidebar.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
require_once "./php/locale.php";
?>

<center>
<a href="/"><img src="/img/openflights-logo.png" alt="<?php echo _('OpenFlights logo'); ?>" width="220" height="31" style="margin: 10px 10px 0px 10px"/></a><br>
<h6>
Expand Down

0 comments on commit 8a39046

Please sign in to comment.