diff options
| author | moderndevslulw <moderndevslulw@alright.party> | 2025-07-08 17:18:14 +0500 |
|---|---|---|
| committer | moderndevslulw <moderndevslulw@alright.party> | 2025-07-08 17:18:14 +0500 |
| commit | a11beb6de34d8420495cfab4ebbc1e58c39a2ed0 (patch) | |
| tree | cb6c923ded6143412ab919abf9beb5b53a9f1001 | |
| parent | 5977563c08b4a5aa15aeaeecc66265c69e059492 (diff) | |
upd: don't show wiki button if folder doesn't exist
| -rw-r--r-- | lib/partials.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/partials.php b/lib/partials.php index 87fd7af..f08afb4 100644 --- a/lib/partials.php +++ b/lib/partials.php @@ -12,7 +12,9 @@ function html_navigation_bar() </section> <section class="row gap-16"> <a href="/">home</a> - <a href="/wiki.php">wiki</a> + <?php if (is_dir(WIKI_PAGE_DIRECTORY)): ?> + <a href="/wiki.php">wiki</a> + <?php endif; ?> <?php if (!empty(LUA_SCRIPT_DIRECTORY)): ?> <a href="/scripts.php">scripts</a> <?php endif; ?> |
