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"