]> git.mxchange.org Git - friendica.git/commitdiff
don't show logout link on 'home' link if remote_user
authorFriendika <info@friendika.com>
Mon, 7 Feb 2011 07:04:10 +0000 (23:04 -0800)
committerFriendika <info@friendika.com>
Mon, 7 Feb 2011 07:04:10 +0000 (23:04 -0800)
boot.php

index 4dcd6db66094946eaa7c3bd848fd9f921ce4f401..87ea65b96cc0085268348ceff60e75c371c8d38b 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -762,7 +762,7 @@ function login($register = false) {
        $lostpass = t('Forgot your password?');
        $lostlink = t('Password Reset');
 
-       if(x($_SESSION,'authenticated')) {
+       if(local_user())) {
                $tpl = load_view_file("view/logout.tpl");
        }
        else {
@@ -772,12 +772,12 @@ function login($register = false) {
        
        $o = replace_macros($tpl,array(
                '$register_html' => $register_html, 
-               '$classname' => $classname,
-               '$namelabel' => $namelabel,
-               '$passlabel' => $passlabel,
-               '$login' => $login,
-               '$lostpass' => $lostpass,
-               '$lostlink' => $lostlink 
+               '$classname'     => $classname,
+               '$namelabel'     => $namelabel,
+               '$passlabel'     => $passlabel,
+               '$login'         => $login,
+               '$lostpass'      => $lostpass,
+               '$lostlink'      => $lostlink 
        ));
 
        return $o;