aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 48b935aae..cb0882280 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -2,9 +2,12 @@
$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
-if(x($_SESSION['uid'])) {
+if(local_user()) {
$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'] .= "<span id=\"nav-link-wrapper\" >\r\n";