show 'login' tab selected on login page

This commit is contained in:
fabrixxm 2011-01-07 16:36:09 +01:00
parent 2ffe0d0b1d
commit 2ea85fd67e

View file

@ -34,7 +34,10 @@
$a->page['nav'] .= '<a id="nav-logout-link" class="nav-link" href="logout">' . t('Logout') . "</a>\r\n";
}
else {
$a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link" href="login">' . t('Login') . "</a>\r\n";
$a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link';
if ($a->module == 'login') { $a->page['nav'] .= ' nav-selected'; }
$a->page['nav'] .= '" href="login">' . t('Login') . "</a>\r\n";
}
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";