Fix bug with webmail link in navbar not working

the webmail link in the  navbar didn't work properly on other pages than the frontpage, due to prepending a "../" to the external link
This commit is contained in:
Peder Bergebakken Sundt 2018-02-19 15:48:51 +01:00
parent b016d27adb
commit f3b95fe641
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function navbar($depth, $active = NULL) {
];
foreach($menuItems as $caption => $link) {
$isActive = $active === $link;
if ($caption !== 'webmail') {
if ($caption !== 'Webmail') {
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
}
if ($isActive) $link = '#';