From 0d0305cf04eb96562c85bd08d39e096ddbda5250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20A=CC=8Ane?= Date: Tue, 13 Feb 2018 14:53:33 +0100 Subject: [PATCH] Fix bug that prevented the active page from being marked in nav --- inc/navbar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/navbar.php b/inc/navbar.php index 14229e1..05559fb 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -11,10 +11,11 @@ function navbar($depth, $active = NULL) { 'wiki' => 'pvv', ]; foreach($menuItems as $caption => $link) { + $isActive = $active === $link; if ($caption !== 'webmail') { $link = rtrim(str_repeat('../', $depth) . $link, '/') . '/'; } - $result .= "\t\t' + $result .= "\t\t' . '' . $caption . "\n"