commit 8ab47011a14b782dc40e0a277deb312b7c89bbc0
parent 17ad8aeaa6e3d0715d4b91b206b2d4a88528b2b1
Author: Nixx <nixx@firemail.cc>
Date: Thu, 23 Jul 2020 22:02:03 +0100
Hard-coding the root directory of a historical web server like a n00b
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/includes/aside.php b/includes/aside.php
@@ -19,7 +19,7 @@ function asideLink ($linkname, $page, $root) {
}
function asideSubLink ($linkname, $root, $indexfile) {
- $workingdir = explode('/srv/http/hiawatha/', getcwd())[1];
+ $workingdir = explode('/usr/share/nginx/html/', getcwd())[1];
if ($workingdir == $linkname && !isset($_GET['post'])) {
echo '<li class="asidesubitem greyed">'.$linkname.'</li>';
} else {
@@ -37,7 +37,7 @@ echo '<ul>';
#asideSubLink('Privacy', $root, $indexfile);
asideSubLink('Scripting', $root, $indexfile);
#asideSubLink('General', $root, $indexfile);
- #asideSubLink('Projects', $root, $indexfile);
+ asideSubLink('Projects', $root, $indexfile);
echo '</ul>';
asideLink('About', 'about.php', $root);
asideLink('Contact', 'contact.php', $root);