diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-09 00:45:09 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-09 00:45:09 -0700 |
commit | 9dc0e659d6b851c30f945ea8fe1e6f45bb9465dd (patch) | |
tree | 469d7dcc0983dcfb4575e7397f08a596f1ba86b0 /include/nav.php | |
parent | beb9fe3ff13091ddcad9d2bafa281ade9258b315 (diff) | |
download | volse-hubzilla-9dc0e659d6b851c30f945ea8fe1e6f45bb9465dd.tar.gz volse-hubzilla-9dc0e659d6b851c30f945ea8fe1e6f45bb9465dd.tar.bz2 volse-hubzilla-9dc0e659d6b851c30f945ea8fe1e6f45bb9465dd.zip |
issue #1, need login link on profile pages
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 5 |
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"; |