Skip to content

Commit

Permalink
Update index.php: Only show remote Website link if we're using the re…
Browse files Browse the repository at this point in the history
…mote Website
  • Loading branch information
EricClaeys authored Nov 18, 2024
1 parent 1b588c4 commit 6420eb9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function DisplayTorProxyConfig() {}

// Get the version of the remote Allsky Website, if it exists.
$remoteWebsiteVersion = "";
if ($useRemoteWebsite) {
if ($hasRemoteWebsite && $useRemoteWebsite) {
$f = getRemoteWebsiteConfigFile();
$errorMsg = "WARNING: ";
$retMsg = "";
Expand Down Expand Up @@ -224,12 +224,8 @@ function DisplayTorProxyConfig() {}
   
<?php if ($useRemoteWebsite) {
echo "<span class='nowrap'>";
if ($remoteWebsiteURL !== "") {
echo "<a external='true' class='version-title-color' href='$remoteWebsiteURL'>";
echo "Remote Website $remoteWebsiteVersion</a></span>";
} else {
echo "Remote Website $remoteWebsiteVersion (unknown URL)";
}
echo "<a external='true' class='version-title-color' href='$remoteWebsiteURL'>";
echo "Remote Website $remoteWebsiteVersion</a></span>";
} ?>
</div>
</div> <!-- /.navbar-header -->
Expand Down

0 comments on commit 6420eb9

Please sign in to comment.