Skip to content

Commit

Permalink
Prepare update page for v2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed Jun 25, 2022
1 parent 38cbfc9 commit 8adb61d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pages/admin/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,15 @@
?>
</p>
<hr>
<?php if ($update_check == '2.0.0') { ?>
<a class="btn btn-success" target="blank" href="https://github.com/NamelessMC/Nameless/releases/tag/v2.0.0"><?php echo $admin_language['download']; ?></a>
<?php } else { ?>
<a class="btn btn-success" target="blank" href="https://worldscapemc.co.uk/nl_core/nl1/updates/<?php echo htmlspecialchars(str_replace('.', '', $update_check)); ?>.zip"><?php echo $admin_language['download']; ?></a>
<a class="btn btn-info" href="/admin/update_execute" onclick="return confirm('<?php echo $admin_language['update_warning']; ?>')"><?php echo $admin_language['update']; ?></a>
<?php } ?>
<?php
}
}
?>
</div>
</div>
</div>
Expand Down

0 comments on commit 8adb61d

Please sign in to comment.