summaryrefslogtreecommitdiff
path: root/src/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/header.php')
-rw-r--r--src/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/header.php b/src/header.php
index d526d60..152dcdf 100644
--- a/src/header.php
+++ b/src/header.php
@@ -1,6 +1,6 @@
<h1><?php echo $title; ?></h1>
<hr>
-<?php if (getcwd() == $_SERVER["DOCUMENT_ROOT"] and basename($_SERVER['PHP_SELF']) == "index.php") { ?>
+<?php if (basename(getcwd()) == basename($_SERVER["DOCUMENT_ROOT"]) and basename($_SERVER['PHP_SELF']) == "index.php") { ?>
<h3 class="nav"><a href="/">[Home]</a> | <a href="/about.php">[About]</a></h3>
<?php } else if (basename($_SERVER['PHP_SELF']) == "index.php") { ?>
<h3 class="nav"><a href="/">[Home]</a> | <a href="/about.php">[About]</a> | <a href="..">[Back]</a></h3>